Api in a separate DocumentRoot to prevent /images from being used on api urls. Apache config example also added to the /etc folder.
This commit is contained in:
parent
22033a0d15
commit
09c5029310
|
|
@ -0,0 +1,42 @@
|
|||
<Directory "C:/graphictoria/COMMIT_HASH/web/public/">
|
||||
Require local
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
<Directory "C:/graphictoria/COMMIT_HASH/web/public_api/">
|
||||
Require local
|
||||
AllowOverride All
|
||||
</Directory>
|
||||
|
||||
<VirtualHost *:80 *:443>
|
||||
ServerAdmin xlxi@gtoria.net
|
||||
ServerName gtoria.local
|
||||
|
||||
ServerAlias www.gtoria.local
|
||||
ServerAlias impulse.gtoria.local
|
||||
ServerAlias wiki.gtoria.local
|
||||
|
||||
SSLEngine on
|
||||
SSLCertificateFile "C:/graphictoria/COMMIT_HASH/etc/cert/localhost.crt"
|
||||
SSLCertificateKeyFile "C:/graphictoria/COMMIT_HASH/etc/cert/localhost.key"
|
||||
|
||||
ErrorLog "C:/graphictoria/logs/gt-test-error.log"
|
||||
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Host}i\" \"%{Referer}i\" \"%{User-agent}i\"" gtoria
|
||||
CustomLog "C:/graphictoria/logs/gt-test-access.log" gtoria
|
||||
DocumentRoot "C:/graphictoria/COMMIT_HASH/web/public"
|
||||
</VirtualHost>
|
||||
|
||||
<VirtualHost *:80 *:443>
|
||||
ServerAlias api.gtoria.local
|
||||
ServerAlias apis.gtoria.local
|
||||
ServerAlias assetgame.gtoria.local
|
||||
ServerAlias data.gtoria.local
|
||||
ServerAlias gamepersistence.gtoria.local
|
||||
ServerAlias clientsettings.api.gtoria.local
|
||||
ServerAlias ephemeralcounters.api.gtoria.local
|
||||
ServerAlias versioncompatibility.api.gtoria.local
|
||||
ServerAlias logging.service.gtoria.local
|
||||
ServerAlias ecsv2.gtoria.local
|
||||
ServerAlias test.public.ecs.gtoria.local
|
||||
|
||||
DocumentRoot "C:/graphictoria/COMMIT_HASH/web/public_api"
|
||||
</VirtualHost>
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
Options -MultiViews -Indexes
|
||||
|
||||
ErrorDocument 403 /index.php
|
||||
|
||||
RewriteEngine On
|
||||
|
||||
# Handle Authorization Header
|
||||
RewriteCond %{HTTP:Authorization} .
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
|
||||
# Send Requests To Front Controller...
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^ index.php [L]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
<?php
|
||||
|
||||
// Start Laravel
|
||||
require_once __DIR__ . '/../public/index.php';
|
||||
Loading…
Reference in New Issue