LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-04-2011, 12:18 PM   #1
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Rep: Reputation: 9
sites gets downloaded and is not accessible


I used vmware to create a guest OS in vmware.The IP of Guest Ubuntu is 192.168.43.129 and that of host Ubuntu is 192.168.1.3

Here is apache log when I access the site on machine where it actually is (guest os) as http://localhost

the apache log shows
Quote:
127.0.0.1 - - [04/Feb/2011:22:18:29 +0530] "GET /some/templates/default/images/ButtonsBack.gif HTTP/1.1" 304 - "http://localhost/some/templates/default/delos.css" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko/2009033100 Ubuntu/9.04 (jaunty) Firefox/3.0.8"
but if I try to access site from host Ubuntu in browser as http:////192.168.43.129/some/

I do not see any entry in /var/log/apache2/access.log .
I checked
Quote:
telnet 192.168.43.129 80
it was perfectly working.So at least port 80 of guest is not blocked I am assured of this situation.What more do I need to check here is my vhost (on guest os ) configuration.
Quote:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName localhost
DocumentRoot /var/www/
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined


</VirtualHost>
what can I check?
 
Old 02-04-2011, 03:52 PM   #2
jcalzare
Member
 
Registered: Aug 2009
Location: Chicago
Distribution: CentOS
Posts: 114

Rep: Reputation: 34
Try fixing your ServerName variable in httpd.conf. You currently have 'localhost', so I believe your virtual host is not responding to the request header sent by the client machine when the IP address is used. This is also why it works properly when using localhost.
 
1 members found this post helpful.
Old 02-05-2011, 12:24 PM   #3
jamesbon
Member
 
Registered: Jun 2010
Posts: 147

Original Poster
Rep: Reputation: 9
Ok I have no clue as what worked.Here is my new Apache configuration under which this is working.

Quote:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>



ErrorLog /var/log/apache2/error.log

LogLevel warn

CustomLog /var/log/apache2/access.log combined


</VirtualHost>
This one is working perfectly.

Last edited by jamesbon; 02-05-2011 at 12:26 PM.
 
  


Reply


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
why is there difficulty in accesing mail sites in linux whether other sites r working sheenamj Linux - Networking 1 09-18-2009 04:32 PM
squid 2.6 not blocking sites even i entered ACL to block sites mohantorvalds Linux - Server 1 01-08-2009 05:17 AM
No Webmail sites accessible neothephoenix Linux - Software 6 06-30-2008 01:28 PM
Client cannot open few https://.. sites i.e. secure sites rajeshghy Linux - General 1 11-02-2006 07:30 AM
External sites not accessible thru gateway morganmcdermott Slackware 5 06-10-2005 09:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration