Update webserver config
This commit is contained in:
parent
2db394a37a
commit
a6941d88f4
@ -1,23 +1,32 @@
|
|||||||
<VirtualHost *:80>
|
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
|
||||||
#
|
|
||||||
# Following lines need to be updated to your needs
|
|
||||||
#
|
|
||||||
|
|
||||||
#ServerName www.example.com
|
<VirtualHost *:80>
|
||||||
|
ServerName _
|
||||||
|
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
DocumentRoot /var/www/html/public
|
DocumentRoot /var/www/html/
|
||||||
DirectoryIndex /index.php
|
|
||||||
|
<Directory /var/www/html/api/public>
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteBase /var/www/html/api/public
|
||||||
|
|
||||||
<Directory /var/www/html/public>
|
|
||||||
AllowOverride None
|
AllowOverride None
|
||||||
Order Allow,Deny
|
Order Allow,Deny
|
||||||
Allow from All
|
Allow from All
|
||||||
|
|
||||||
FallbackResource /index.php
|
FallbackResource /api/public/index.php
|
||||||
|
</Directory>
|
||||||
|
|
||||||
|
<Directory /var/www/html/app>
|
||||||
|
AllowOverride None
|
||||||
|
Order Allow,Deny
|
||||||
|
Allow from All
|
||||||
|
|
||||||
|
DirectoryIndex index.html
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user