Share » Forums » Install & configuration » Virtual host... hmmm

Virtual host... hmmm

Virtual host... hmmm

Sunday 30 November 2003 2:24:20 pm - 2 replies

Author Message

James Packham

Monday 01 December 2003 9:18:36 am

You could add something like:

NameVirtualHost *:80

<Virtualhost *:80>
<Directory [your webroot]>
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
</Directory>

RewriteEngine On
RewriteRule !\.(gif|css|jpg|png|jar|js|html)$ /index.php

DocumentRoot [your web root]
ServerName http://[your servername].[your domain.com]
</Virtualhost>

to httpd.conf and edit the square brackets. It's a little basic, but you can keep adding more <virtualhost>[details]</virtualhost> to your hearts content without killing your apache server (assuming this is the same for Win as it is for Lin). I'd recommend the apache documentation on the apache site if you're really having that much trouble with virtual hosting, I know it set me on the right track a couple of times when I was in trouble.

Regards,

James

stig henning

Friday 12 December 2003 8:26:33 am

thank you for extensive posting!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu