| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- # Configuración de Apache para temp.mysite.net
- # Guardar en /etc/httpd/conf.d/temp.mysite.conf
- <VirtualHost *:80>
- ServerName temp.mysite.net
- ServerAlias www.temp.mysite.net
-
- # Logs
- ErrorLog logs/temp.mysite.net-error.log
- CustomLog logs/temp.mysite.net-access.log combined
-
- # Reverse Proxy simple
- ProxyPreserveHost On
- ProxyPass / http://127.0.0.1:5000/
- ProxyPassReverse / http://127.0.0.1:5000/
-
- # Timeout para archivos grandes
- ProxyTimeout 300
-
- # Configuración para manejar errores 413
- ProxyErrorOverride Off
- </VirtualHost>
- # Configuración HTTPS (opcional)
- <VirtualHost *:443>
- ServerName temp.mysite.net
- ServerAlias www.temp.mysite.net
-
- # SSL
- SSLEngine on
- SSLCertificateFile /path/to/your/cert.crt
- SSLCertificateKeyFile /path/to/your/key.key
-
- # Logs
- ErrorLog logs/temp.mysite.net-ssl-error.log
- CustomLog logs/temp.mysite.net-ssl-access.log combined
-
- # Reverse Proxy
- ProxyPreserveHost On
- ProxyPass / http://127.0.0.1:5000/
- ProxyPassReverse / http://127.0.0.1:5000/
-
- # Timeout para archivos grandes
- ProxyTimeout 300
-
- # Configuración para manejar errores 413
- ProxyErrorOverride Off
- </VirtualHost>
|