| 1 |
# Load necessary modules (often pre-loaded in httpd image, but good practice)
|
| 2 |
LoadModule proxy_module modules/mod_proxy.so
|
| 3 |
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
|
| 4 |
|
| 5 |
# Ensure authorization headers are passed correctly
|
| 6 |
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
| 7 |
|
| 8 |
# Define the listening port
|
| 9 |
Listen *:8081
|
| 10 |
|
| 11 |
<VirtualHost *:8081>
|
| 12 |
ServerName localhost
|
| 13 |
ServerAdmin root@localhost
|
| 14 |
DocumentRoot /var/www/html
|
| 15 |
|
| 16 |
<Directory "/var/www/html/">
|
| 17 |
DirectoryIndex index.php index.html
|
| 18 |
AllowOverride None
|
| 19 |
Options FollowSymLinks
|
| 20 |
Require all granted
|
| 21 |
</Directory>
|
| 22 |
|
| 23 |
<Directory "/var/www/html/conf/">
|
| 24 |
AllowOverride None
|
| 25 |
Order allow,deny
|
| 26 |
Deny from all
|
| 27 |
</Directory>
|
| 28 |
|
| 29 |
# Pass PHP scripts to the php-fpm service
|
| 30 |
<FilesMatch \.php$>
|
| 31 |
# Use the service name 'php' as the hostname, port 9000 is the default FPM port
|
| 32 |
SetHandler "proxy:fcgi://php:9000"
|
| 33 |
</FilesMatch>
|
| 34 |
|
| 35 |
ErrorLog logs/leafok_bbs_error_log
|
| 36 |
CustomLog logs/leafok_bbs_access_log combined
|
| 37 |
</VirtualHost>
|