1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

snippet: Apache

Last updated at Posted at 2015-05-31

リダイレクト (.htaccess)

.htaccess
RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*
RewriteRule ^(.*)$ https://転送先のドメイン/サブディレクトリ/$1 [L,R=301]

mimetypeの追加(.htaccess)

.htaccess
AddType application/octet-stream .ova

BufferedLogs

/etc/httpd/conf/httpd.conf
BufferedLogs On
  • ある程度バッファが蓄積されないと出力されない。
    • 毎秒ログ書き込みしていたのが、数秒に1回に減った。
    • 2分前のログが今頃書き込まれることもあるので注意。
  • httpd restartすると、蓄積されたログが一気に出力された。

認証

apache2.2と2.4の違い

<Location /web/login>
- Order Deny,Allow
- Deny from all
- Allow from 127.0.0.1
+ Require host 127.0.0.1
</Location>

ServerLimit, MaxClient

WARNING: MaxClients of 565 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.

解決方法
 /etc/init.d/httpd restart

ProxyPass設定

phpmyadmin

sudo apt-get install -y phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf sites-enabled/
sudo /etc/init.d/apache2 restart
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?