LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-22-2010, 11:23 AM   #1
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Rep: Reputation: 16
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
 
Old 01-22-2010, 12:39 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
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
 
Old 01-25-2010, 03:19 AM   #3
emmalg
Member
 
Registered: Jun 2009
Location: Spain
Distribution: Various, Ubuntu, Fedora, Open Solaris, Solaris, RHEL, CentOS
Posts: 64

Original Poster
Rep: Reputation: 16
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
 
  


Reply

Tags
access, apache2, configuration, webserver


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gparted query regarding boot configuration katesfb Linux - Newbie 2 10-03-2009 11:32 PM
remote access with mysql query browser problem Azalar Linux - Server 1 10-27-2007 02:55 PM
Query MS SQL from remote php simon@saq.co.uk Linux - General 2 10-17-2005 09:44 AM
open/query remote udp sockets in shell macie Programming 2 03-20-2005 03:45 PM
2 HDDs: configuration query tireseas Linux - Hardware 3 08-25-2003 05:52 AM


All times are GMT -5. The time now is 04:15 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration