Changing DocumentRoot
-
A popular request with the LAMP is how to change the DocumentRoot.
The latest package now has the apache configs under
/app/data/apache. You can edit the files there and just restart the app.For example, to move the PHP directory to say
/app/data/public/frontend, edit apache/app.conf like so:<VirtualHost *:80> DocumentRoot /app/data/public/frontend ErrorLog "|/bin/cat" CustomLog "|/bin/cat" combined <Directory /app/data/public/frontend> Options +FollowSymLinks AllowOverride All Require all granted </Directory> # Do not remove this include. It's required for your app to see the Real IP Include "/app/code/apache/rpaf.conf" # This line can be commented out, if you do no require PHPMyAdmin Access Include "/app/code/apache/phpmyadmin.conf" </VirtualHost> -
cc @andirahmat I recall giving you some complicated htaccess rules for this. It's simpler now.
@girish Thank you girish
-
S steinhmor referenced this topic on
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login