atl_andy Posted April 17, 2008 Share Posted April 17, 2008 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. Quote Link to comment Share on other sites More sharing options...
atl_andy Posted April 18, 2008 Author Share Posted April 18, 2008 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. Quote Link to comment Share on other sites More sharing options...
apacheguy Posted April 19, 2008 Share Posted April 19, 2008 What does the error log say? Quote Link to comment Share on other sites More sharing options...
atl_andy Posted April 21, 2008 Author Share Posted April 21, 2008 Error log said that ip addresses were not allowed. Fixed that in the modsecurity config and it worked. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.