vhost setup...please check my work...
Posted by: mattfox (---.west.biz.rr.com)
Date: July 03, 2008 02:43AM

Ok so i have been trying to figure out this whole vhost thing and i think i got it, i just want someone to doublecheck my work to make sure its right and secure. Also whats the diffrence between putting the vhost configuration in the http-vhosts.conf file or just putting it into the http.conf? I put my setup in http.conf here is my test setup in http.conf

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>

<Directory "c:/wamp/www/www1/">
Options -Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all
</Directory>

<Directory "c:/wamp/www/www2/">
Options -Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all
</Directory>

NameVirtualHost *:80

<VirtualHost 192.168.0.34:80>

ServerAlias domain.com domain
DocumentRoot C:/wamp/www/www1
ErrorLog C:/wamp/logs/error.log
CustomLog C:/wamp/logs/access.log common
</VirtualHost>


<VirtualHost 192.168.0.35:80>

ServerAlias sub1
DocumentRoot C:/wamp/www/www2
ErrorLog C:/wamp/log2/error.log
CustomLog C:/wamp/log2/access.log common
</VirtualHost>

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.php3 index.html index.htm
</IfModule>

#
# The following lines prevent .htaccess and .htpasswd files from being
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

So this is part of my http.conf with the vhost setup...does this look right and secure?
I have removed the line at the bottom saying to use conf/extras/httpd-vhosts.conf so it can run straight from http.conf. Does it make any diffrence if you run it from http.conf instead of the vhost.conf?

Thanks

Options: ReplyQuote
Re: vhost setup...please check my work...
Posted by: mattfox (---.west.biz.rr.com)
Date: July 04, 2008 03:06AM

Bump...so does this look good? I have switched my vhost setup back into the Vhost-conf file because it seems to load the websites a little faster....

Options: ReplyQuote


Sorry, only registered users may post in this forum.