Apache俺設定
ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 60 KeepAlive Off MaxKeepAliveRequests 100 <IfModule worker.c> StartServers 4 MaxClients 300 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 </IfModule> Listen 80 LoadModule... いろいろ Include conf.d/*.conf User linuxuser Group linuxuser ServerAdmin mailladdress UseCanonicalName Off #ServerName www.example.com:80 #DocumentRoot "/home/var" バーチャルドメイン使うから <Directory "/home/defult-document-root"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <IfModule mod_userdir.c> # # UserDir is disabled by default since it can confirm the presence # of a username on the system (depending on home directory # permissions). # UserDir disabled # # To enable requests to /~user/ to serve the user's public_html # directory, remove the "UserDir disabled" line above, and uncomment # the following line instead: # #UserDir public_html </IfModule> DirectoryIndex index.html index.rb <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> TypesConfig /etc/mime.types DefaultType text/plain <IfModule mod_mime_magic.c> # MIMEMagicFile /usr/share/magic.mime MIMEMagicFile conf/magic </IfModule> HostnameLookups Off ErrorLog logs/error_log LogLevel warn # The following directives define some format nicknames for use with # a CustomLog directive (see below). LogFormat "%T %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D %{X-Forwarded-For}i %{X-Forwarded-Proto}i" combined SetEnvIf Request_URI "\.(gif|jpg|png|css|ico|js)$" nolog SetEnvIf User-Agent "ELB-HealthChecker/1\.0" nolog CustomLog logs/access_log combined Alias /icons/ "/var/www/icons/" <Directory "/var/www/icons"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> # WebDAV module configuration section. <IfModule mod_dav_fs.c> # Location of the WebDAV lock database. DAVLockDB /var/lib/dav/lockdb </IfModule> 使わないけど #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8 AddIcon... いろいろ ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddLanguage... いろいろ ForceLanguagePriority Prefer Fallback AddDefaultCharset UTF-8 AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset UTF-8 .utf8 AddCharset utf-8 .utf8 AddCharset EUC-JP .euc-jp AddCharset EUC-KR .euc-kr AddCharset shift_jis .sjis AddEncoding x-compress .Z AddEncoding x-gzip .gz .tgz AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl .crl AddHandler type-map var #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml Alias /error/ "/var/www/error/" <IfModule mod_negotiation.c> <IfModule mod_include.c> <Directory "/var/www/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback </Directory> </IfModule> </IfModule> BrowserMatch... いろいろ NameVirtualHost *:80 <VirtualHost *:80> ServerName main-domain DocumentRoot /home/dir # ErrorDocument 503 /maintainance.html # KeepAlive Off CustomLog /var/log/httpd/www_root_access_log combined env=!nolog ErrorLog /var/log/httpd/www_root_error_log <Directory "/home/dir/www"> AllowOverride all Options +FollowSymLinks </Directory> </VirtualHost>
フー。