Board index Linux Apache

Moderator: chandranjoy

Sample VirtualHost entry for a domain in Apache

Postby chandranjoy » Sun Aug 21, 2011 3:35 pm

Core server Apache virtualhost config:
<VirtualHost *:80>

DocumentRoot /var/www/vhosts/
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www/vhosts/>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all

ErrorLog /var/www/vhosts/

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/www/vhosts/ combined

ScriptAlias /cgi-bin/ /var/www/vhosts/

<Directory /var/www/vhosts/>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all


Site Admin
Posts: 283
Joined: Fri Oct 23, 2009 11:19 pm

Return to Apache

Who is online

Users browsing this forum: No registered users and 1 guest