Created
June 10, 2011 07:33
-
-
Save ariela/1018390 to your computer and use it in GitHub Desktop.
Apache2 VHOST設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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