Guest User

apache sites-avaliable

a guest
Sep 22nd, 2025
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.90 KB | None | 0 0
  1. <VirtualHost *:80>
  2. # The ServerName directive sets the request scheme, hostname and port that
  3. # the server uses to identify itself. This is used when creating
  4. # redirection URLs. In the context of virtual hosts, the ServerName
  5. # specifies what hostname must appear in the request's Host: header to
  6. # match this virtual host. For the default virtual host (this file) this
  7. # value is not decisive as it is used as a last resort host regardless.
  8. # However, you must set it for any further virtual host explicitly.
  9. #ServerName www.example.com
  10. ServerName paxtonpenguin.com
  11. ServerAdmin [redacted]
  12. DocumentRoot /var/www/html
  13.  
  14. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  15. # error, crit, alert, emerg.
  16. # It is also possible to configure the loglevel for particular
  17. # modules, e.g.
  18. #LogLevel info ssl:warn
  19.  
  20. ErrorLog ${APACHE_LOG_DIR}/error.log
  21. CustomLog ${APACHE_LOG_DIR}/access.log combined
  22.  
  23. # For most configuration files from conf-available/, which are
  24. # enabled or disabled at a global level, it is possible to
  25. # include a line for only one particular virtual host. For example the
  26. # following line enables the CGI configuration for this host only
  27. # after it has been globally disabled with "a2disconf".
  28. #Include conf-available/serve-cgi-bin.conf
  29. </VirtualHost>
  30.  
  31. <VirtualHost *:80>
  32. ServerName files.paxtonpenguin.com
  33. LoadModule proxy_module modules/mod_proxy.so
  34. RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  35. ProxyPass "/" "unix:///dev/shm/party.sock|https://files.paxtonpenguin.com/"
  36. </VirtualHost>
  37.  
  38. <VirtualHost *:80>
  39. ServerName mail.paxtonpenguin.com
  40. LoadModule proxy_module modules/mod_proxy.so
  41. ProxyPass "/" http://10.0.0.213
  42. ProxyPassReverse "/" http://10.0.0.213
  43. </VirtualHost>
  44.  
  45. and
  46.  
  47. <IfModule mod_ssl.c>
  48. <VirtualHost *:443>
  49. # The ServerName directive sets the request scheme, hostname and port that
  50. # the server uses to identify itself. This is used when creating
  51. # redirection URLs. In the context of virtual hosts, the ServerName
  52. # specifies what hostname must appear in the request's Host: header to
  53. # match this virtual host. For the default virtual host (this file) this
  54. # value is not decisive as it is used as a last resort host regardless.
  55. # However, you must set it for any further virtual host explicitly.
  56. #ServerName www.example.com
  57.  
  58. ServerAdmin [redacted again]
  59. DocumentRoot /var/www/html
  60.  
  61. # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
  62. # error, crit, alert, emerg.
  63. # It is also possible to configure the loglevel for particular
  64. # modules, e.g.
  65. #LogLevel info ssl:warn
  66.  
  67. ErrorLog ${APACHE_LOG_DIR}/error.log
  68. CustomLog ${APACHE_LOG_DIR}/access.log combined
  69.  
  70. # For most configuration files from conf-available/, which are
  71. # enabled or disabled at a global level, it is possible to
  72. # include a line for only one particular virtual host. For example the
  73. # following line enables the CGI configuration for this host only
  74. # after it has been globally disabled with "a2disconf".
  75. #Include conf-available/serve-cgi-bin.conf
  76.  
  77.  
  78. ServerName paxtonpenguin.com
  79. Include /etc/letsencrypt/options-ssl-apache.conf
  80. ServerAlias www.paxtonpenguin.com
  81. SSLCertificateFile /etc/letsencrypt/live/www.paxtonpenguin.com/fullchain.pem
  82. SSLCertificateKeyFile /etc/letsencrypt/live/www.paxtonpenguin.com/privkey.pem
  83. </VirtualHost>
  84. </IfModule>
  85. <IfModule mod_ssl.c>
  86. <VirtualHost *:443>
  87. ServerName files.paxtonpenguin.com
  88. LoadModule proxy_module modules/mod_proxy.so
  89. RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
  90. ProxyPass "/" "unix:///dev/shm/party.sock|http://files.paxtonpenguin.com/"
  91. </VirtualHost>
  92. </IfModule>
  93.  
  94. <IfModule mod_ssl.c>
  95. <VirtualHost *:443>
  96. ServerName mail.paxtonpenguin.com
  97. LoadModule proxy_module modules/mod_proxy.so
  98. ProxyPass "/" https://10.0.0.213
  99. ProxyPassReverse "/" https://10.0.0.213
  100. </VirtualHost>
  101. </IfModule>
  102.  
Advertisement
Add Comment
Please, Sign In to add comment