[root@linux ~]# vi /etc/httpd/conf.d/ssl.conf ← WebサーバーSSL設定ファイル編集
# Per-Server Logging:
# The home of a custom SSL log file. Use this when you want a
# compact non-error SSL logfile on a virtual host basis.
CustomLog logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteLog "logs/rewrite_log"
RewriteLogLevel 0
RewriteCond %{HTTP_HOST} !fedorasrv.com$
RewriteCond %{REQUEST_URI} !^/webmail/ ← 追加
RewriteRule ^/(.*)?$ http://%{HTTP_HOST}/$1 [L,R]
</IfModule>
</VirtualHost>
[root@fedora ~]# /etc/rc.d/init.d/httpd restart ← Apache再起動
httpd を停止中: [ OK ]
httpd を起動中: [ OK ]
|
|