Apache default server is showing virtual server directory
My httpd.conf can be seen at this link
5 Replies
Since you're doing Name Based virtual hosts on the primary/single IP, you need to add dotmill as another
-Chris
Just curious, I do have a second IP for my Linode (for DNS purposes), could I configure virtual servers on that IP as well? I'm assuming yes, but it would probably be with little or no purpose unless for SSL or something like that?
@dotmil:
curious, I do have a second IP for my Linode (for DNS purposes), could I configure virtual servers on that IP as well? I'm assuming yes, but it would probably be with little or no purpose unless for SSL or something like that?
You are exactly correct. SSL certs are the only thing that requires an additional IP for hosting…
-Chris
@caker:
I've faced this before and know of one way to fix it. There might be a more "correct" way, but:
caker's way is the correct way.
@apache docs:
If you are adding virtual hosts to an existing web server, you must also create a
block for the existing host. The ServerName and DocumentRoot included in this virtual host should be the same as the global ServerName and DocumentRoot. List this virtual host first in the configuration file so that it will act as the default host.
Virtual host documentation