All pastes #417852 Raw Edit

Mine

public text v1 · immutable
#417852 ·published 2007-03-31 06:35 UTC
rendered paste body
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
ServerRoot "/s/apache2"

User deploy
Group deploy

Listen 80

LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_anon_module modules/mod_authn_anon.so
LoadModule authn_dbd_module modules/mod_authn_dbd.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule cache_module modules/mod_cache.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule dbd_module modules/mod_dbd.so
LoadModule dumpio_module modules/mod_dumpio.so
LoadModule ext_filter_module modules/mod_ext_filter.so
LoadModule include_module modules/mod_include.so
LoadModule filter_module modules/mod_filter.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule log_forensic_module modules/mod_log_forensic.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
LoadModule ident_module modules/mod_ident.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule version_module modules/mod_version.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

# 'Main' server configuration

# The directives in this section set up the values used by the 'main'
# server, which responds to any requests that aren't handled by a
# <VirtualHost> definition.	These values also provide defaults for
# any <VirtualHost> containers you may define later in the file.
ServerAdmin httpd.conf@elliottcable.com

# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#ServerName elliottcable.com:80

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot "htdocs"

<Directory />
	# The Options directive is both complicated and important.	Please see
	# http://httpd.apache.org/docs/2.2/mod/core.html#options
	# for more information.
	Options FollowSymLinks
	# What can go in .htaccess
	AllowOverride None
	# Controls who can get stuff from this server.
	Order deny,allow
	Deny from all
</Directory>

<Directory "/s">
	Options Indexes FollowSymLinks
	AllowOverride All
	Order allow,deny
	Allow from all
</Directory>

# Above section opens up ENTIRE server directory. So these are commented out.
# <Directory "/s/apache2/htdocs">
# 	Options Indexes FollowSymLinks
# 	AllowOverride All
# 	Order allow,deny
# 	Allow from all
# </Directory>
# 
# <Directory "/s/apache2/cgi-bin">
# 	AllowOverride None
# 	Options None
# 	Order allow,deny
# 	Allow from all
# </Directory>

# DirectoryIndex: sets the file that Apache will serve if a directory is requested.
<IfModule dir_module>
	DirectoryIndex index.html
</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>

# The location of the error log file.
ErrorLog logs/error_log

# Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel info

<IfModule log_config_module>
	#
	# The following directives define some format nicknames for use with
	# a CustomLog directive (see below).
	#
	LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
	LogFormat "%h %l %u %t \"%r\" %>s %b" common

	<IfModule logio_module>
	# You need to enable mod_logio.c to use %I and %O
	LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
	</IfModule>

	# The location and format of the access logfile (Common Logfile Format).
	CustomLog logs/access_log combinedio
</IfModule>

<IfModule alias_module>
	# ScriptAlias: This controls which directories contain server scripts. 
	ScriptAlias /cgi-bin/ "/s/apache2/cgi-bin/"
</IfModule>

# DefaultType: the default MIME type the server will use for a document
DefaultType text/plain

<IfModule mime_module>
	# TypesConfig points to the file containing the list of mappings from
	# filename extension to MIME-type.
	TypesConfig conf/mime.types

	# AddType allows you to add to or override the MIME configuration
	# file specified in TypesConfig for specific file types.
	AddType application/x-compress .Z
	AddType application/x-gzip .gz .tgz
</IfModule>

# Watch those balancers, bitch! ZOMG OUCHIES!
Listen 8080
<VirtualHost *:8080>
	<Location />
		SetHandler balancer-manager
		Deny from all
		Allow from localhost
	</Location>
</VirtualHost>

# ===========
# = VHosts! =
# ===========

NameVirtualHost *:80

# Empty first vhost to make all my so-called 'default' settings above ACTUALLY default
<VirtualHost *:80>
	ServerName domain.tld
	Include conf/no-www.conf
</VirtualHost>

# VHost for the site
<VirtualHost *:80>
	DocumentRoot /s/apache2/htdocs/elliottcable_com
	ServerName elliottcable.com
	Include conf/no-www.conf
</VirtualHost>

# VHost for my computer's contents
Include conf/httpd-efc-mp1_elliottcable_com-directories.conf
<VirtualHost *:80>
	DocumentRoot /
	ServerName efc-mp1.elliottcable.com
	Include conf/no-www.conf
</VirtualHost>

# VHost for elliottcable.com's Mephisto
<VirtualHost *:80>
	ServerName blog.elliottcable.com
	<Location "/">
		# Make sure people go to domain.tld, not www.domain.tld
		RewriteEngine On
		RewriteCond %{HTTP_HOST} ^blog\.elliottcable\.com$ [NC]
		RewriteRule ^(.*)$ http://mephisto.elliottcable.com/$1 [R=301,L]
	</Location>
</VirtualHost>
Include conf/rails-mephisto_elliottcable_com.conf
Include conf/rails-mephisto_elliottcable_com-proxy.conf

# VHost for elliottcable.com's Beast
Include conf/rails-beast_elliottcable_com.conf
Include conf/rails-beast_elliottcable_com-proxy.conf

# VHost for fxts.org's ident server
Include conf/rails-ident_fxts_org.conf
Include conf/rails-ident_fxts_org-proxy.conf