Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.