File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
user_guide_src/source/installation Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -162,14 +162,25 @@ e.g., **apache2/conf/extra/httpd-vhost.conf**:
162
162
.. code-block :: apache
163
163
164
164
<VirtualHost *:80>
165
- DocumentRoot "/opt/lamp/apache2/htdocs/ myproject/public"
165
+ DocumentRoot "/opt/lamp/apache2/myproject/public"
166
166
ServerName myproject.local
167
167
ErrorLog "logs/myproject-error_log"
168
168
CustomLog "logs/myproject-access_log" common
169
+
170
+ <Directory "/opt/lamp/apache2/myproject/public">
171
+ AllowOverride All
172
+ Require all granted
173
+ </Directory>
169
174
</VirtualHost>
170
175
171
- If your project folder is not a subfolder of the Apache document root, then your
172
- ``<VirtualHost> `` element may need a nested ``<Directory> `` element to grant the web server access to the files.
176
+ The above configuration assumes the project folder is located as follows:
177
+
178
+ .. code-block :: text
179
+
180
+ apache2/
181
+ ├── myproject/ (Project Folder)
182
+ │ └── public/ (DocumentRoot for myproject.local)
183
+ └── htdocs/
173
184
174
185
Testing
175
186
-------
You can’t perform that action at this time.
0 commit comments