LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache2 remote access configuration query (https://www.linuxquestions.org/questions/linux-software-2/apache2-remote-access-configuration-query-784050/)

emmalg 01-22-2010 11:23 AM

Apache2 remote access configuration query
 
Hi All

I have some perl Web Interfaces for some project tools running on a Linux (Ubuntu) machine, they're in the /var/www directory and I want to view them from other computers on our network.

I have backed up then edited the /etc/apache2/sites-available/default file from:

</Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

to:

</Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order deny,allow
deny from all
allow from .ourdomain.net 127.0.0.1
</Directory>

And I've restarted the apache2 server with the following result (which doesn't seem to have impeded use of the web interfaces on the localhostin the past):

* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServName
[OK]

I was hoping this would work and I'd be able to see the webpages from other computers on our network but no such luck!

I would be cery grateful if you could provide me with a "For Dummies" explanation of what to do - I really know nothing at all about web servers!

I hope I've provided enough info.

Have a great weekend all, see you Monday! :-)

Cheers
Emma

rweaver 01-22-2010 12:39 PM

Well what you would likely want to do is set it up to allow connections from your network by ip not by name.

What do you get when you enter these commands:

cat /etc/hosts
/sbin/ifconfig

emmalg 01-25-2010 03:19 AM

Hi Rweaver

How much of the IP addess do I have to specify? I would guess the first xxx.xx of the addresses machines I wish to connect from.

Please excuse my for not giving the whole of the content of the two files, I think it would be considered a security risk for me to do so.

hosts contains only the local host and the above mentioned local IP that the web server is using. Then some standard lines for IPv6.

ifconfig contains two groups on info. My eth0 details and the lo local loopback for 127.0.0.1.

If you could be specific about what information you require from these files I may be able to help more, but I cannot give out any IP info for the machines or network. Sorry to be disobliging! :)

Cheers
Emma


All times are GMT -5. The time now is 01:58 AM.