Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_ssl.c>
- <VirtualHost *:443>
- ServerName darlink.ai
- DocumentRoot /var/www/html
- Header always set Referrer-Policy "same-origin"
- #Alias /static1 /var/www/darlink/public/static
- #Alias /uploads /var/www/darlink/public/uploads
- # Enable the proxy features
- ProxyRequests Off
- <Proxy *>
- Order deny,allow
- Allow from all
- </Proxy>
- <Location "/">
- AuthType Basic
- AuthName "Restricted Content"
- AuthUserFile /etc/apache2/.htpasswd
- Require valid-user
- <RequireAny>
- Require ip 194.31.175.251
- # Require ip 91.225.196.106
- Require ip 176.115.100.90
- Require ip 37.115.212.198
- Require ip 148.77.2.74
- Require ip 195.238.119.90
- Require ip 18.159.53.253
- #Require ip 188.163.40.119
- # Require ip 188.163.40.119
- <RequireAll>
- Require valid-user
- </RequireAll>
- </RequireAny>
- </Location>
- <Location "/uploads">
- Require all granted
- </Location>
- <Location "/static-default">
- Require all granted
- </Location>
- ProxyPass /ws/ ws://localhost:9000/
- ProxyPassReverse /ws/ ws://localhost:9000/
- ProxyPass /admin/adminer.php !
- # Forward requests to the local application
- ProxyPass /next http://localhost:3005/
- ProxyPassReverse /next http://localhost:3005/
- ProxyPass / http://localhost:4000/
- ProxyPassReverse / http://localhost:4000/
- ErrorLog ${APACHE_LOG_DIR}/error.log
- CustomLog ${APACHE_LOG_DIR}/access.log combined
- #RewriteEngine on
- #RewriteCond %{SERVER_NAME} =femlink.webstaginghub.com
- #RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
- #RewriteEngine On
- #RewriteCond %{HTTPS} off
- #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- SSLCertificateFile /etc/letsencrypt/live/darlink.ai/fullchain.pem
- SSLCertificateKeyFile /etc/letsencrypt/live/darlink.ai/privkey.pem
- Include /etc/letsencrypt/options-ssl-apache.conf
- </VirtualHost>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement