Jump to content

I'm trying to add Name-based Virtual hosts to my server.


Recommended Posts

You can usually just stick it at the end, though there are usually better ways. Are you using Linux? Any particular distro? I only ask because allot of distros have there own methods of handling such tasks.

 

One way that I've become accustomed to is to define all my vhosts in there own files then simply include these files into the main httpd.conf file. eg;

 

# Include the virtual host configurations:
NameVirtualHost *
Include /etc/apache2/vhosts/*.conf

 

Then in the /etc/apache2/vhosts directory I would have all my vhosts in separate *conf files.

XAMPP installed my server, and it's supposed to be cross-platform.  By distro, do you mean version number?  It's Apache 2.2.8. 

No, i was talking about Linux distros. Either way, it doesn't matter. I was just trying to explain that some distros already have a defined method of adding virtual hosts.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.