All pastes #348940 Raw Edit

FilesMatch

public text v1 · immutable
·published 2007-02-10 13:08 UTC
rendered paste body
ServerType standalone
ServerRoot "/usr"
PidFile /var/run/httpd.pid
ScoreBoardFile /var/run/httpd.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 15
StartServers 5
MaxClients 200
MaxRequestsPerChild 0

## Start Load Modules ##
LoadModule vhost_alias_module	libexec/apache/mod_vhost_alias.so
LoadModule env_module			libexec/apache/mod_env.so
LoadModule config_log_module	libexec/apache/mod_log_config.so
LoadModule mime_module			libexec/apache/mod_mime.so
LoadModule negotiation_module	libexec/apache/mod_negotiation.so
LoadModule autoindex_module		libexec/apache/mod_autoindex.so
LoadModule dir_module			libexec/apache/mod_dir.so
LoadModule action_module		libexec/apache/mod_actions.so
LoadModule alias_module			libexec/apache/mod_alias.so
LoadModule rewrite_module		libexec/apache/mod_rewrite.so
LoadModule access_module		libexec/apache/mod_access.so
LoadModule headers_module		libexec/apache/mod_headers.so
LoadModule usertrack_module		libexec/apache/mod_usertrack.so
LoadModule setenvif_module		libexec/apache/mod_setenvif.so
LoadModule php5_module			libexec/apache/libphp5.so
## Stop Load Modules ##

## Start Add modules ##
ClearModuleList
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_mime.c
AddModule mod_negotiation.c
AddModule mod_autoindex.c
AddModule mod_dir.c
AddModule mod_actions.c
AddModule mod_alias.c
AddModule mod_rewrite.c
AddModule mod_access.c
AddModule mod_headers.c
AddModule mod_usertrack.c
AddModule mod_so.c
AddModule mod_setenvif.c
AddModule mod_php5.c
## Stop Add Modules ##

Port 80
User http
Group http
ServerAdmin hagbarddenstore@gmail.com
AccessFileName .htaccess
UseCanonicalName On
HostNameLookups Off

## Error Log Start ##
ErrorLog /var/log/apache/error_log
LogLevel Warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache/access_log common
## Error Log End ##

ServerSignature Off
AccessConfig /dev/null
ResourceConfig /dev/null

## Start Module Settings ##
<IfModule mod_dir.c>
	DirectoryIndex index.htm index.html index.phtml index.php
</IfModule>

<IfModule mod_alias.c>
	Alias /icons/ "/var/www/icons/"
	<Directory "/var/www/icons/">
		AllowOverRide None
		Order Allow,Deny
		Allow From All
	</Directory>
</Ifmodule>
## Stop Module Settings ##

## Start AddHandlers ##
AddHandler application/x-httpd-php .php .phtml
AddHandler application/x-httpd-php-source .phps .phtmls
## Stop AddHandlers ##

## Some special Dir and Files ##
<Directory "/">
	Options FollowSymLinks
	AllowOverRide None
</Directory>

<Files ~ "^\.ht">
	Order Allow,Deny
	Deny From All
	Satisfy All
</Files>
## End of special Dir and Files ##

## Start Virtual Hosts ##
NameVirtualHost *

<VirtualHost *>
	ServerName hagbard.homelinux.org
	Documentroot /var/www/
	<Directory "/var/www/">
		Options None
		Order Allow,Deny
		Allow From All
	</Directory>
</VirtualHost>

<VirtualHost *>
	ServerName evergladestudios.com
	DocumentRoot /home/everglade/public_html/
	<Directory "/home/everglade/public_html/">
		Options None
		Order Allow,Deny
		Allow From All
	</Directory>
</VirtualHost>

<VirtualHost *>
	ServerName www.evergladestudios.com
	DocumentRoot /home/everglade/public_html/
	<Directory "/home/everglade/public_html/">
		Options None
		Order Allow,Deny
		Allow From All
	</Directory>
</VirtualHost>

<VirtualHost *>
	ServerName beta.evergladestudios.com
	DocumentRoot /home/everglade/beta/
	<Directory "/home/everglade/beta/">
		Options None
		Order Allow,Deny
		Allow From All
	</Directory>
</VirtualHost>

<VirtualHost *>
	ServerName images.evergladestudios.com
	DocumentRoot /home/everglade/images/
	<Directory "/home/everglade/images/">
		Options None
		Order Allow,Deny
		Deny From All
	</Directory>
	SetEnvIfNoCase Referer "^http://www\.evergladestudios\.com/" local_ref=1
	<FilesMatch ~ "\.(jpg|png|bmp|gif)">
		Order Allow,Deny
		Allow From env=local_ref
	</FilesMatch>
</VirtualHost>

<VirtualHost *>
	ServerName testing.hagbard.homelinux.org
	DocumentRoot /var/www/a/
	<Directory "/var/www/a/">
		Options None
		Order Allow,Deny
		Allow From All
	</Directory>
</VirtualHost>
## Stop Virtual Hosts ##