Skip to content

Instantly share code, notes, and snippets.

@ariela
Created June 10, 2011 07:33
Show Gist options
  • Save ariela/1018390 to your computer and use it in GitHub Desktop.
Save ariela/1018390 to your computer and use it in GitHub Desktop.
Apache2 VHOST設定
NameVirtualHost *:80
NameVirtualHost *:433
#
# どのドメイン設定にもマッチしない場合
#
<VirtualHost *:80>
Include conf.d/vhost/default.conf
</VirtualHost>
<VirtualHost *:433>
Include conf.d/vhost/default.conf
Include conf.d/vhost/ssl.conf
</VirtualHost>
#
# ドメイン設定(ドメイン・サブドメイン毎)
#
<VirtualHost *:80>
Include conf.d/vhost/transrain.net.conf
</VirtualHost>
<VirtualHost *:433>
Include conf.d/vhost/transrain.net.conf
Include conf.d/vhost/ssl.conf
</VirtualHost>
ServerName default
DocumentRoot /var/www/html
<Directory "/var/www/html">
AllowOverride All
Allow from All
</Directory>
CustomLog /var/log/httpd/access_log combined
ErrorLog /var/log/httpd/error_log
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
ServerName transrain.net
DocumentRoot /home/<ユーザ名>/public_html/transrain.net
<Directory "/home/<ユーザ名>/public_html/transrain.net">
AllowOverride All
Allow from All
</Directory>
CustomLog /home/<ユーザ名>/public_html/logs/transrain.net/access_log combined
ErrorLog /home/<ユーザ名>/public_html/logs/transrain.net/error_log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment