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