Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit da50d83

Browse files
author
mgrauer
committed
Merge pull request #185 from midasplatform/specify_apache_directory_allowoverride
Specify Directory AllowOverride in docs
2 parents dcb21ef + 5b161e2 commit da50d83

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

docs/installation/linux.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sudo apt-get dist-upgrade
1919
sudo apt-get install apache2 cmake curl git libapache2-mod-php5 memcached mysql-server nano php5 php5-curl php5-gd php5-json php5-memcached php5-mysqlnd php5-pgsql php5-sqlite php5-xdebug postgresql python python-jinja2 python-markdown python-pip python-yaml sqlite3 subversion
2020
sudo pip install mkdocs
2121
sudo a2enmod rewrite
22-
echo -e "<VirtualHost *:80>\nServerAdmin webmaster@example.org\nServerName example.org\nServerAlias www.example.org\nDocumentRoot /var/www/example.org/html\nErrorLog \${APACHE_LOG_DIR}/error.log\nCustomLog \${APACHE_LOG_DIR}/access.log combined\n</VirtualHost>" | sudo tee -a /etc/apache2/sites-available/example.org.conf
22+
echo -e "<Directory /var/www/example.org/html>\nOptions FollowSymLinks\nAllowOverride All\n</Directory>\n<VirtualHost *:80>\nServerAdmin webmaster@example.org\nServerName example.org\nServerAlias www.example.org\nDocumentRoot /var/www/example.org/html\nErrorLog \${APACHE_LOG_DIR}/error.log\nCustomLog \${APACHE_LOG_DIR}/access.log combined\n</VirtualHost>" | sudo tee -a /etc/apache2/sites-available/example.org.conf
2323
sudo a2ensite example.org.conf
2424
sudo service apache2 restart
2525
```
@@ -81,11 +81,17 @@ sudo chown $USER:$USER /var/www/example.org/html
8181
The value of $DOCUMENT_ROOT in the general instructions will be
8282
/var/www/example.org/html.
8383

84-
Add the configuration of the virtual host:
84+
Add the configuration of the virtual host, including a Directory section
85+
to allow apache to execute directives defined in .htaccess files:
8586

8687
```bash
8788
sudo nano /etc/apache2/sites-available/example.org.conf
8889

90+
<Directory /var/www/example.org/html>
91+
Options FollowSymLinks
92+
AllowOverride All
93+
</Directory>
94+
8995
<VirtualHost *:80>
9096
ServerAdmin webmaster@example.org
9197
ServerName example.org

0 commit comments

Comments
 (0)