Category Archives: Apache

[Apache] wordpress permalink 404 issue

edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf) <VirtualHost pr.site.org:80> ServerName pr.site.org ServerAdmin webmaster@localhost DocumentRoot /var/www/pr.site.org # !– add this section <Directory /var/www/pr.site.org> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> # !– ErrorLog ${APACHE_LOG_DIR}/pr_error.log CustomLog ${APACHE_LOG_DIR}/pr_access.log combined </VirtualHost> … Continue reading

Posted in Apache, Ubuntu, WordPress | Leave a comment

[Apache] Redirect 80 to 8080

enable proxy_module, proxy_http_module, rewrite_module set < Directory path > in apache config RewriteEngine on AllowOverride All edit .htaccess in your folder < IfModule mod_rewrite.c > RewriteEngine On RewriteBase / RewriteRule ^(.+)$ http://localhost:8080/jwebadm/$1 [P,L] < /IfModule > restart apache

Posted in Apache | Leave a comment

[Apache] Proxypass

Because the default web port of Elasticsearch is 9200. And I want to change it with 80. Maybe I could use the proxypass function. enable the proxy, and restart apache a2enmod proxy a2enmod proxy_http service apache2 restart add following into … Continue reading

Posted in Apache, Elasticsearch, Kibana | Leave a comment

Apache SSL Enable

環境 CentOS 5.x i386 產生 key [root@Web test]# openssl genrsa -des3 -out site.key 2048 Generating RSA private key, 2048 bit long modulus …………+++ ………………+++ e is 65537 (0x10001) Enter pass phrase for site.key: Verifying – Enter pass phrase for site.key: … Continue reading

Posted in Apache, CentOS, SSL | Leave a comment

htaccess ( apache 存取控制 )

修改 /etc/httpd/conf/httpd.conf <Directory “/var/www/html”> # # Possible values for the Options directive are “None”, “All”, # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that “MultiViews” must be named *explicitly* — “Options All” # … Continue reading

Posted in Apache | Leave a comment