Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Htaccess Options - apache userdir mod

Started by thgr 6 years ago · 1 replies · 834 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 jeremycherfas, 1 week ago
1 111 7 days ago
Installation & Hosting · by motorambler, 3 weeks ago
8 392 2 weeks ago
Installation & Hosting · by antoinep, 3 months ago
8 963 3 months ago
Installation & Hosting · by Jürgen Dietrich, 10 months ago
0 623 10 months ago
Installation & Hosting · by rappluk, 11 months ago
0 667 11 months ago