[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now


Trying to access apache virtual hosts from outside LAN

Posted on 2007-12-05
Medium Priority
Last Modified: 2008-02-01

I have been hosting a single URL for a few years now and which is a registered domain, dns'd via everydns.net and running on a WAMP server. The single URL works perfect, however, I am trying to set up some new virtual hosts so that I can host multiple URLS from home. My problem is that I have got them to work from home on the LAN accessing them using http://mysite.localhost but I cant seem to access them from outside the network, nor am I able to assign a parked url to them.

My Apache configuration is as follows:

DocumentRoot "C:\wamp\www\zerocarbonearth"
ServerName zerocarbonearth.localhost

DocumentRoot "C:\wamp\www\uscarbonfree"
ServerName uscarbonfree.localhost

DocumentRoot "C:\wamp\www\mainediscalliance"
ServerName mainediscalliance.localhost

And for the windows hosts file:       localhost            zerocarbonearth.localhost            uscarbonfree.localhost            mainediscalliance.localhost

Question by:c9k9h
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
LVL 18

Expert Comment

ID: 20412048
Are your virtual domains regsitered in an Internet DNS Service like your single URL through everydns.net?

If not, no one will ever see them. Make sure that they get proper DNS registrations through your DNS provider.


Author Comment

ID: 20412148
yes, the actual domains are registered through godaddy and they are on my DNS server as dynamic domains I have a static ip address....
LVL 18

Expert Comment

ID: 20412509
Just for info I looked on the web and...

This page is parked free, courtesy of GoDaddy.com  at IP

www.mainediscalliance.com came back to IP

www.zerocarbonearth.com/ came back to IP

zerocarbonearth.com came back to IP:


mainediscalliance.com resolved back to IP

DNS issue most likely. Did you set up the DNS stuff correctly on your account pages on GoDaddy?

That's about all I can think of.

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 20412622
yea it shouldn't be as difficult as it seems...
zerocarbonearth.com is parked correctly... that is because it is on my DNS server as well as my apache server.... so it's pulling the correctly, however, when i go to the live site it is pulling the site (carbonfreeus.com) from the root directory rather than from where it is supposed to /www/zerocarbonearth. so it definitely seems like a problem with my apache settings, does this sound about right?

Author Comment

ID: 20412638
Also, shouldnt there be a way to access it directly on the backend? say http://mysite.carbonfreeus.com?
LVL 18

Expert Comment

ID: 20413781
To access them locally you would need to add them to that machine's host file as far as I know. If you are running an Internet DNS service at your location, I do not know how to add a local host record and local IP to a domain name that already has INternet DNS records assigned on that DNS server.

I am confused about pulling carbonfreeus.com from your root directory when you only mention virtual servers of uscarbonfree....


Author Comment

ID: 20413839
I have already added them to the machines host file and they work fine as far as accessing them locally. The only other domains i have on the dns server are zerocarbonearth.com and carbonfreeus.com (both in different folders on my home server) both live sites bring me to carbonfreeus.com. Should i set the zerocarbonearth.com to a secondary domain?

Also... where in apache do you set the folder permissions? i'm running filezilla client/server with full read/write/delete/append permissions and for some reason i cannot chmod any directories to say, 777, nor can I access PhpMyAdmin from outside the LAN. I'm getting a 404 error stating that I do not have permission.  Any ideas here? Thanks for your help John, I really appreciate it!
LVL 18

Accepted Solution

Johnjces earned 375 total points
ID: 20414024
I am confused again. You are running Apache on a Windows PC correct? (WAMP). Not certain why you would need to change permission using Unix (Linux) chown number, i.e. 777 etc.

I can only advise you about my Linux setup using Apache and virtual hosts that I have running.

I have a conf.d directory /etc/httpd/conf.d/ and under this directory is a file with one of my virtual domains as a configuration file called



<VirtualHost *:80>
      ServerName mankindsauces.com
      ServerAlias *.mankindsauces.com
      DocumentRoot /var/www/virtual/mankindsauces.com
      ErrorLog /var/log/httpd/mankindsauces.com_error_log
      CustomLog /var/log/httpd/mankindsauces.com_access_log combined

Here is where it points to the physical location/directory on my server of where the web files, index.htm etc, are located.

Not knowing how Windows Apache uses its httpd.conf file, (should be the same), I have no virtual domains entered into that conf file.

So.... I am not certain how to help you from this point.

I am not certain either on how that other domain is popping up, carbonfreeus.com.

Hopefully I have helped a tad and some other expert will know the answers. I do not at this point.

Good luck and I am learning too!

LVL 18

Expert Comment

ID: 20452842
Did I truly help you?

I didn't think this would be THE correct answer. If so great and thanks, but let me know if you would if in fact this solved or helped to solve your problem.

And... what was the final fix?



Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses
Course of the Month12 days, 22 hours left to enroll

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question