Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Htaccess Options - apache userdir mod

Started by thgr 6 years ago · 1 replies · 976 views
6 years ago

Hello,

I would like to know if an apache virtual host is required to run grav.

I tried with and without. Both are working.

But when I don't use virtual host, with the userdir mod at localhot/~user, grav don't run because of one line in the htaccess file :

TXT
# Begin - Prevent Browsing and Set Default Resources
Options -Indexes

I found an error message in the log of apache :

"options not allowed here"

I can fix it easily by puting this line in comment, but I don't know why this option is here if it produce an error.
So virtual server is a better way to the install ?

Thanks

last edited 12/28/20 by thgr
6 years ago

@thgr

Maybe it should be mentioned in documentation's page :

16/basics/requirements : Apache Requirements

When running grav without virtualhost defined with Apache, an error happen ("options not allow here" in apache error logs) and you have a "Internal Server Error" in your browser for the home page.
You can fix it, editing .hthacces file of grav's folder by commenting the line :
Options -Indexes
like this
# Options -Indexes

last edited 12/28/20 by thgr

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by DrPen, 6 days ago
4 117 4 days ago
Installation & Hosting · by vollstock, 3 weeks ago
3 221 3 weeks ago
Installation & Hosting · by David, 7 years ago
3 3508 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
3 345 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
0 269 1 month ago