Untitled
unknown
plain_text
2 years ago
2.0 kB
2
Indexable
Never
server { listen 80; server_name itspartner.com.pl; return 301 https://$host$request_uri; } server { listen 443 ssl http2 default_server; server_name itspartner.com.pl; ssl_certificate /etc/letsencrypt/live/itspartner.com.pl/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/itspartner.com.pl/privkey.pem; # managed by Certbot ssl_session_cache shared:SSL:1m; ssl_session_timeout 10m; root /var/www/html/itspartner.com.pl; index index index.php index.html index.htm; location ~* \.(js|jpg|png|css)$ { root /var/www/html/itspartner.com.pl/; expires 1d; } location = /favicon.ico { log_not_found off; access_log off; } location = /robots.txt { allow all; log_not_found off; access_log off; } location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8080; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { expires max; log_not_found off; } } APACHE <VirtualHost 127.0.0.1:8080> ServerName itspartner.com.pl DocumentRoot /var/www/html/itspartner.com.pl ErrorLog ${APACHE_LOG_DIR}/itspartner_error.log CustomLog ${APACHE_LOG_DIR}/itspartner_access.log combined # <Directory /> # Options FollowSymLinks # AllowOverride None # </Directory> <Directory /var/www/html/itspartner.com.pl> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all Require all granted </Directory> </VirtualHost>