Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not loading public but does localhost?

Status
Not open for further replies.

ChuckInAtl

Technical User
Jul 13, 2011
2
US
I have Windows Apache 2.2 on Win 7 box.

I have a public ip that points to a internal ip 192.168.0.10.

I have 2 virtual host that read



#============= Webfuse.net Main Server Name =====================
<VirtualHost 192.168.1.10:80>
ServerName DocumentRoot "C:/#ServerAdmin webmaster@webfuse.net
</VirtualHost>

#==============Webfuse.Net========================
<VirtualHost 192.168.1.10:80>
ServerName DocumentRoot "C:/ServerAlias webfuse.com *.webfuse.com
ServerAdmin webmaster@webfuse.com
#<Directory "C:/# Options FollowSymLinks MultiViews
# Order allow,deny
# Allow from all
#</Directory>
#ErrorLog "C:/#ErrorLog "C:/</VirtualHost>

#==============Cucar.com========================
<VirtualHost 192.168.1.10:80>
ServerName DocumentRoot "C:/ServerAlias cucar.com *.cucar.com
ServerAdmin webmaster@cucar.com
#<Directory "C:/# Options FollowSymLinks MultiViews
# Order allow,deny
# Allow from all
#</Directory>
#ErrorLog "C:/#ErrorLog "C:/</VirtualHost>

My httpd.conf file has ServerName
DocumentRoot "C:/
<Directory "C:/
Neither webfuse nor cucar load as or or without the
Both pages load as localhost/webfuse and localhost/cucar??

Any help would be greatly appreciated,

Chuck
 
How many NICs do you have installed on that box? Your VirtualHosts are point to a different network.Your internal address is listed as 192.168.0.10 and your Hosts are pointing to 192.168.1.10.
That would be my first guess.
- Are you forwarding port 80 from your router to the that box?
- You should also just need one VirtualHost for Webfuse and one for cucar.
if you document root for apache in the httpd.conf file is at intake then you will have a url that looks something like

 
Please find my working httpd.conf for your scenario (This has been done on Linux box, so kindly make the changes in the path accordingly)

Note: kindly remove the '<>' while adding your details as mentioned below

===================================================
Listen 80
DocumentRoot "/var/<Directory "/var/Options FollowSymLinks
NameVirtualHost <your IP address>:80

#============= Webfuse.net Main Server Name =====================
<VirtualHost <your IP address>:80>
ServerName DocumentRoot "/var/#ServerAdmin webmaster@webfuse.net
</VirtualHost>

#==============Webfuse.Net========================
<VirtualHost <your IP address>:80>
ServerName DocumentRoot "/var/ServerAlias webfuse.com *.webfuse.com
ServerAdmin webmaster@webfuse.com
</VirtualHost>

#==============Cucar.com========================
<VirtualHost <your IP address>:80>
ServerName DocumentRoot "/var/ServerAlias cucar.com *.cucar.com
ServerAdmin webmaster@cucar.com
</VirtualHost>
 
Thanks all for your help; problem solved...

I was using TurboPad as a text editor!! BAD move...it was not providing line feeds correctly.

There have been a couple of directions offered that I will be implementing however.

Thanks,
Chuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top