diff options
Diffstat (limited to 'apache-vhost.conf')
| -rw-r--r-- | apache-vhost.conf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/apache-vhost.conf b/apache-vhost.conf new file mode 100644 index 0000000..66bb310 --- /dev/null +++ b/apache-vhost.conf @@ -0,0 +1,26 @@ +<VirtualHost *:80>
+ ServerName lucien-sens-bon.com
+ ServerAlias www.lucien-sens-bon.com
+
+ ProxyPreserveHost On
+ ProxyPass / http://localhost:8000/
+ ProxyPassReverse / http://localhost:8000/
+
+ ErrorLog ${APACHE_LOG_DIR}/storefront-error.log
+ CustomLog ${APACHE_LOG_DIR}/storefront-access.log combined
+</VirtualHost>
+
+<VirtualHost *:80>
+ ServerName api.lucien-sens-bon.com
+
+ ProxyPreserveHost On
+ ProxyPass / http://localhost:9000/
+ ProxyPassReverse / http://localhost:9000/
+
+ ErrorLog ${APACHE_LOG_DIR}/api-error.log
+ CustomLog ${APACHE_LOG_DIR}/api-access.log combined
+</VirtualHost>
+
+# Note : Pour activer SSL (https), utilisez Certbot :
+# sudo certbot --apache -d lucien-sens-bon.com -d api.lucien-sens-bon.com
+
|
