Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@x1unix
Created January 22, 2020 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save x1unix/debf121efe62908e4cbc1661aed11096 to your computer and use it in GitHub Desktop.
Save x1unix/debf121efe62908e4cbc1661aed11096 to your computer and use it in GitHub Desktop.
ProxyPass LetsEncrypt Apache
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
ServerName goplay2.x1unix.com
ServerAlias www.goplay2.x1unix.com
ProxyPreserveHost On
DocumentRoot /var/www/goplay.x1unix.com
ProxyPass /.well-known !
ProxyPass / http://127.0.0.1:8500/
ProxyPassReverse / http://127.0.0.1:8500/
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment