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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.