Virtual hosts for starshipos-f18.com/.org (XWiki, Gitea, Nexus) with Let's Encrypt SSL. Old strshipos.* domains redirect 301 to new domains. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
788 B
Plaintext
24 lines
788 B
Plaintext
# Gitea — gitea.starshipos-f18.com
|
|
<VirtualHost *:80>
|
|
ServerName gitea.starshipos-f18.com
|
|
ServerAlias gitea.starshipos-f18.org
|
|
|
|
ProxyPreserveHost On
|
|
ProxyRequests Off
|
|
|
|
RewriteEngine On
|
|
RewriteCond %{HTTP:Upgrade} websocket [NC]
|
|
RewriteRule /(.*) ws://127.0.0.1:3000/$1 [P,L]
|
|
RewriteRule ^/(.*) http://127.0.0.1:3000/$1 [P,L]
|
|
|
|
ProxyPassReverse / http://127.0.0.1:3000/
|
|
|
|
RequestHeader set X-Forwarded-Proto "http"
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/gitea-starshipos-f18-error.log
|
|
CustomLog ${APACHE_LOG_DIR}/gitea-starshipos-f18-access.log combined
|
|
RewriteCond %{SERVER_NAME} =gitea.starshipos-f18.com [OR]
|
|
RewriteCond %{SERVER_NAME} =gitea.starshipos-f18.org
|
|
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
|
|
</VirtualHost>
|