Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Htaccess Options - apache userdir mod

Started by thgr 6 years ago · 1 replies · 883 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 motorambler, 1 month ago
9 678 3 weeks ago
Installation & Hosting · by jeremycherfas, 1 month ago
1 334 1 month ago
Installation & Hosting · by antoinep, 4 months ago
8 1161 4 months ago
Installation & Hosting · by Jürgen Dietrich, 10 months ago
0 802 10 months ago
Installation & Hosting · by rappluk, 12 months ago
0 834 12 months ago