35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
<VirtualHost *:8080>
|
|
ServerAdmin webmaster@localhost
|
|
DocumentRoot /var/www/html/public
|
|
|
|
# Pass the Authorization header through to PHP so $request->bearerToken() works.
|
|
# Without this, Apache strips it (it only lands in HTTP_AUTHORIZATION), Laravel's
|
|
# Sanctum guard never sees the Bearer token, and the test env silently exercises a
|
|
# different auth path than production — which is how the 3.9.x Bearer role regression
|
|
# slipped past CI. With it, BearerApiCest goes through the real Sanctum-guard path.
|
|
<Directory /var/www/html/public>
|
|
CGIPassAuth On
|
|
</Directory>
|
|
|
|
ErrorLog /var/www/html/storage/logs/apacheError.log
|
|
CustomLog /var/www/html/storage/logs/access.log combined
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerAdmin webmaster@localhost
|
|
DocumentRoot /var/www/html/public
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/ssl/certs/cert.pem
|
|
SSLCertificateKeyFile /etc/ssl/private/key.pem
|
|
|
|
SetEnv HTTPS "on"
|
|
|
|
<Directory /var/www/html/public>
|
|
CGIPassAuth On
|
|
</Directory>
|
|
|
|
ErrorLog /var/www/html/storage/logs/apacheError.log
|
|
CustomLog /var/www/html/storage/logs/access.log combined
|
|
</VirtualHost>
|