61 lines
1.8 KiB
Text
61 lines
1.8 KiB
Text
<VirtualHost *:80>
|
|
# Panel domain configuration for Open Game Panel
|
|
ServerName panel.yourdomain.com
|
|
ServerAlias panel.*
|
|
|
|
# Document root points to the GSP panel installation
|
|
DocumentRoot /var/www/GSP
|
|
|
|
# Directory configuration
|
|
<Directory /var/www/GSP>
|
|
Options -Indexes +FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
|
|
# PHP configuration
|
|
<IfModule mod_php7.c>
|
|
php_value upload_max_filesize 100M
|
|
php_value post_max_size 100M
|
|
php_value max_execution_time 300
|
|
php_value max_input_time 300
|
|
</IfModule>
|
|
</Directory>
|
|
|
|
# Error and access logs
|
|
ErrorLog ${APACHE_LOG_DIR}/ogp-panel-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/ogp-panel-access.log combined
|
|
|
|
# Security headers
|
|
<IfModule mod_headers.c>
|
|
Header always set X-Content-Type-Options "nosniff"
|
|
Header always set X-Frame-Options "SAMEORIGIN"
|
|
Header always set X-XSS-Protection "1; mode=block"
|
|
</IfModule>
|
|
|
|
# Disable directory listing
|
|
<Directory /var/www/GSP>
|
|
Options -Indexes
|
|
</Directory>
|
|
</VirtualHost>
|
|
|
|
# SSL/HTTPS configuration (uncomment and configure after obtaining SSL certificate)
|
|
#<VirtualHost *:443>
|
|
# ServerName panel.yourdomain.com
|
|
# ServerAlias panel.*
|
|
#
|
|
# DocumentRoot /var/www/GSP
|
|
#
|
|
# SSLEngine on
|
|
# SSLCertificateFile /etc/ssl/certs/panel.yourdomain.com.crt
|
|
# SSLCertificateKeyFile /etc/ssl/private/panel.yourdomain.com.key
|
|
# SSLCertificateChainFile /etc/ssl/certs/ca-bundle.crt
|
|
#
|
|
# <Directory /var/www/GSP>
|
|
# Options -Indexes +FollowSymLinks
|
|
# AllowOverride All
|
|
# Require all granted
|
|
# </Directory>
|
|
#
|
|
# ErrorLog ${APACHE_LOG_DIR}/ogp-panel-ssl-error.log
|
|
# CustomLog ${APACHE_LOG_DIR}/ogp-panel-ssl-access.log combined
|
|
#</VirtualHost>
|