diff options
| author | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
|---|---|---|
| committer | ertopogo <erwin.t.pombett@gmail.com> | 2026-01-18 20:32:59 +0100 |
| commit | 09a949092c59856962e4a7d132bc5a5e76fe5e55 (patch) | |
| tree | 990d6b8f24ff9c6dbc0fcb15b5512067d09b17fd /apache-vhost.conf | |
Initial commit: Medusa Backend + storefront + config
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
+
|
