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**:
162162.. code-block :: apache
163163
164164 <VirtualHost *:80>
165- DocumentRoot "/opt/lamp/apache2/htdocs/ myproject/public"
165+ DocumentRoot "/opt/lamp/apache2/myproject/public"
166166 ServerName myproject.local
167167 ErrorLog "logs/myproject-error_log"
168168 CustomLog "logs/myproject-access_log" common
169+
170+ <Directory "/opt/lamp/apache2/myproject/public">
171+ AllowOverride All
172+ Require all granted
173+ </Directory>
169174 </VirtualHost>
170175
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/
173184
174185 Testing
175186-------
You can’t perform that action at this time.
0 commit comments