22 lines
516 B
ApacheConf
22 lines
516 B
ApacheConf
<VirtualHost *:80>
|
|
ServerName app.example.com
|
|
Redirect / https://app.example.com/
|
|
</VirtualHost>
|
|
|
|
<VirtualHost *:443>
|
|
ServerName app.example.com
|
|
SSLEngine on
|
|
|
|
DocumentRoot /path/to/repo/public
|
|
<Directory /path/to/repo/public>
|
|
Require all granted
|
|
</Directory>
|
|
|
|
RewriteEngine on
|
|
Rewritecond %{REQUEST_URI} !^/api
|
|
RewriteCond %{REQUEST_URI} !^/static
|
|
RewriteRule . index.html [L]
|
|
|
|
ProxyPass /api unix:/run/uwsgi/app/appname/socket|uwsgi://appname/
|
|
</VirtualHost>
|