Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Htaccess Options - apache userdir mod

Started by thgr 5 years ago · 1 replies · 685 views
5 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
5 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 antoinep, 22 hours ago
7 73 4 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 65 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 65 8 months ago
Installation & Hosting · by N, 12 months ago
3 76 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 65 1 year ago