Created
May 16, 2016 20:48
-
-
Save maliMirkec/055a2ec601cd9dc5f438ba33b58aa71c to your computer and use it in GitHub Desktop.
Bitnami WAMP Wordpress vhosts fix.
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
# Bitnami applications installed in a prefix URL | |
Include "C:/Workspace/Bitnami/apps/phpmyadmin/conf/httpd-prefix.conf" | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/httpd-prefix.conf" |
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
# Bitnami applications installed in a Virtual Host | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/httpd-vhosts.conf" |
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
# Default Virtual Host configuration. | |
<IfVersion < 2.3 > | |
NameVirtualHost *:80 | |
NameVirtualHost *:443 | |
</IfVersion> | |
<VirtualHost _default_:80> | |
DocumentRoot "C:/Workspace/Bitnami/apache2/htdocs" | |
<Directory "C:/Workspace/Bitnami/apache2/htdocs"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
<IfVersion < 2.3 > | |
Order allow,deny | |
Allow from all | |
</IfVersion> | |
<IfVersion >= 2.3 > | |
Require all granted | |
</IfVersion> | |
</Directory> | |
# Error Documents | |
ErrorDocument 503 /503.html | |
# Bitnami applications installed with a prefix URL (default) | |
Include "C:/Workspace/Bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf" | |
</VirtualHost> | |
# Default SSL Virtual Host configuration. | |
<IfModule !ssl_module> | |
LoadModule ssl_module modules/mod_ssl.so | |
</IfModule> | |
Listen 443 | |
SSLProtocol all -SSLv2 -SSLv3 | |
SSLHonorCipherOrder on | |
SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 EECDH+ECDSA+SHA256 EECDH+aRSA+SHA384 EECDH+aRSA+SHA256 EECDH !aNULL !eNULL !LOW !3DES !MD5 !EXP !PSK !SRP !DSS !EDH !RC4" | |
SSLPassPhraseDialog builtin | |
SSLSessionCache "shmcb:C:/Workspace/Bitnami/apache2/logs/ssl_scache(512000)" | |
SSLSessionCacheTimeout 300 | |
<VirtualHost _default_:443> | |
DocumentRoot "C:/Workspace/Bitnami/apache2/htdocs" | |
SSLEngine on | |
SSLCertificateFile "C:/Workspace/Bitnami/apache2/conf/server.crt" | |
SSLCertificateKeyFile "C:/Workspace/Bitnami/apache2/conf/server.key" | |
<Directory "C:/Workspace/Bitnami/apache2/htdocs"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
<IfVersion < 2.3 > | |
Order allow,deny | |
Allow from all | |
</IfVersion> | |
<IfVersion >= 2.3 > | |
Require all granted | |
</IfVersion> | |
</Directory> | |
# Error Documents | |
ErrorDocument 503 /503.html | |
# Bitnami applications installed with a prefix URL (default) | |
Include "C:/Workspace/Bitnami/apache2/conf/bitnami/bitnami-apps-prefix.conf" | |
</VirtualHost> | |
# Bitnami applications that uses virtual host configuration | |
Include "C:/Workspace/Bitnami/apache2/conf/bitnami/bitnami-apps-vhosts.conf" |
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
<Directory "C:/Workspace/Bitnami/apps/wordpress/_/wp-content/plugins/akismet"> | |
# Only allow direct access to specific Web-available files. | |
# Apache 2.2 | |
<IfModule !mod_authz_core.c> | |
Order Deny,Allow | |
Deny from all | |
</IfModule> | |
# Apache 2.4 | |
<IfModule mod_authz_core.c> | |
Require all denied | |
</IfModule> | |
# Akismet CSS and JS | |
<FilesMatch "^(form|akismet)\.(css|js)$"> | |
<IfModule !mod_authz_core.c> | |
Allow from all | |
</IfModule> | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
</FilesMatch> | |
# Akismet images | |
<FilesMatch "^(.+)\.(png|gif)$"> | |
<IfModule !mod_authz_core.c> | |
Allow from all | |
</IfModule> | |
<IfModule mod_authz_core.c> | |
Require all granted | |
</IfModule> | |
</FilesMatch> | |
</Directory> |
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
Alias /wpname/ "C:/Workspace/Bitnami/apps/wordpress/wpname/" | |
Alias /wpname "C:/Workspace/Bitnami/apps/wordpress/wpname" | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/httpd-wpname.conf" |
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
<VirtualHost *:80> | |
ServerName wpname.v | |
ServerAlias www.wpname.v | |
DocumentRoot "C:/Workspace/Bitnami/apps/wordpress/wpname" | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/httpd-wpname.conf" | |
</VirtualHost> | |
<VirtualHost *:443> | |
ServerName wpname.v | |
ServerAlias www.wpname.v | |
DocumentRoot "C:/Workspace/Bitnami/apps/wordpress/wpname" | |
SSLEngine on | |
SSLCertificateFile "C:/Workspace/Bitnami/apps/wordpress/conf/certs/server.crt" | |
SSLCertificateKeyFile "C:/Workspace/Bitnami/apps/wordpress/conf/certs/server.key" | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/httpd-wpname.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
<Directory "C:/Workspace/Bitnami/apps/wordpress/wpname"> | |
Options +MultiViews +FollowSymLinks | |
AllowOverride All | |
<IfVersion < 2.3 > | |
Order allow,deny | |
Allow from all | |
</IfVersion> | |
<IfVersion >= 2.3> | |
Require all granted | |
</IfVersion> | |
RewriteEngine On | |
RewriteBase /wordpress/ | |
RewriteRule ^index\.php$ - [S=1] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /wordpress/index.php [L] | |
</Directory> | |
Include "C:/Workspace/Bitnami/apps/wordpress/conf/htaccess.conf" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment