skip to Main Content

RewriteRule in folder breaks parent (.htaccess) – Apache

# /.htaccess RewriteEngine on RewriteBase / RewriteRule "^([^/]+)/root/(.*)" "$1/index.php?root=$2" # /folder/.htaccess RewriteRule "^sub/(.*)" "index.php?sub=$1" Each folder's RewriteRule works in isolation: /folder/root/hi => /folder/index.php?root=hi /folder/sub/hello => /folder/index.php?sub=hello Q: Why does adding any RewriteRule in the subfolder (/folder/.htacces) break the one in…

VIEW QUESTION

Where do I copy my VirtualHost directive in my Apache docker image?

I'm trying to Dockerize my Apache/Django project locally. On my local machine (running Mac Sierra) I have this file (maps.conf) in my /etc/apache2/other/ directory ... <VirtualHost *:80> ServerName maps.example.com Alias /static /Library/WebServer/Documents/maps/maps/static <Directory /Library/WebServer/Documents/maps/maps/static> Require all granted </Directory> # Next,…

VIEW QUESTION
Back To Top
Search