This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ sudo apt-get dist-upgrade
19
19
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
20
20
sudo pip install mkdocs
21
21
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
23
23
sudo a2ensite example.org.conf
24
24
sudo service apache2 restart
25
25
```
@@ -81,11 +81,17 @@ sudo chown $USER:$USER /var/www/example.org/html
81
81
The value of $DOCUMENT_ROOT in the general instructions will be
82
82
/var/www/example.org/html.
83
83
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:
85
86
86
87
``` bash
87
88
sudo nano /etc/apache2/sites-available/example.org.conf
88
89
90
+ < Directory /var/www/example.org/html>
91
+ Options FollowSymLinks
92
+ AllowOverride All
93
+ < /Directory>
94
+
89
95
< VirtualHost * :80>
90
96
ServerAdmin webmaster@example.org
91
97
ServerName example.org
You can’t perform that action at this time.
0 commit comments