Apache Proxy #10189
Unanswered
FX-Drouard
asked this question in
Q&A
Apache Proxy
#10189
Replies: 1 comment
-
Apache Reverse Proxy for AUTOMATIC1111 Stable Diffusion web UIInstall Apache and Certbot (optional) apt install apache2 apache2-utils certbot python3-certbot-apache
systemctl status apache2 Enable required and some recommended modules a2enmod setenvif proxy proxy_http ssl headers rewrite
systemctl restart apache2 Get Let’s Encrypt certificates (optional) vi /etc/apache2/sites-enabled/000-default.conf
-> ServerName host.domain.tld
apachectl configtest
systemctl reload apache2
certbot --apache Configure reverse proxy (websocket is the important part for sd-webui) For example: # ssl server configuration
<VirtualHost *:443>
ServerName host.domain.tld
# websocket proxy configuration
<Location />
ProxyPass ws://localhost:7860/
ProxyPassReverse ws://localhost:7860/
</Location>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/host.domain.tld/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/host.domain.tld/privkey.pem
</VirtualHost>
# redirect http to https server configuration
<VirtualHost *:80>
ServerName host.domain.tld
RewriteEngine on
RewriteCond %{SERVER_NAME} =host.domain.tld
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What to set for proxy apache?
I set that and I have some connection error in the UI after login
Beta Was this translation helpful? Give feedback.
All reactions