site.conf 1.7 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <VirtualHost *:PORT> # Usually 'PORT' is 80
  2. ProxyPass /data LOCAL_SERVER:PORT # Not sure if this MUST go before other confs or if it can go after
  3. ProxyPassReverse /data LOCAL_SERVER:PORT
  4. # The ServerName directive sets the request scheme, hostname and port that
  5. # the server uses to identify itself. This is used when creating
  6. # redirection URLs. In the context of virtual hosts, the ServerName
  7. # specifies what hostname must appear in the request's Host: header to
  8. # match this virtual host. For the default virtual host (this file) this
  9. # value is not decisive as it is used as a last resort host regardless.
  10. # However, you must set it for any further virtual host explicitly.
  11. #ServerName www.example.com
  12. ServerAdmin webmaster@localhost
  13. DocumentRoot /var/www/html # or wherever the website actually is on the server machine; I needed this (rather than apache2's default, which worked before setting up the reverse proxy) for some reason...
  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. ErrorLog error.log
  20. CustomLog access.log combined
  21. # For most configuration files from conf-available/, which are
  22. # enabled or disabled at a global level, it is possible to
  23. # include a line for only one particular virtual host. For example the
  24. # following line enables the CGI configuration for this host only
  25. # after it has been globally disabled with "a2disconf".
  26. #Include conf-available/serve-cgi-bin.conf
  27. </VirtualHost>