Jump to content

[SOLVED] Apache on Internal Server


atl_andy

Recommended Posts

I have been developing an application for my company, using localhost exclusively.  Now I'm ready to put it on our network and am really having trouble getting a server set up correctly, since I have never set up an apache server except on my laptop.  The server's ip is 192.168.10.51.  I have add it to /etc/hosts.  What else do I need to do to get it visible to computers on our network?  I keep getting "HTTP 400 Bad Request" errors. 

Link to comment
https://forums.phpfreaks.com/topic/101559-solved-apache-on-internal-server/
Share on other sites

ok, I have edited the hosts file and httpd.conf, but probably didin't change the right fields. 

 

In hosts, I added the ip of myserver:

192.168.10.51   server.com server

 

In httpd.conf, I added a virtual host:

<VirtualHost  192.168.10.51>
    ServerName 192.168.10.51
    DocumentRoot /var/www/html
</VirtualHost>

 

Is there anything else I need to change?  I keep getting a "HTTP 400 Bad Request" error when trying to access from a pc on our network.  This is first server I have set up and am lost.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.