Guest User

Untitled

a guest
Jan 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. server {
  2. listen 443;
  3. server_name test3.de;
  4. ssl on;
  5. ssl_certificate /etc/ssl/crt/vinci-u18iptables.crt;
  6. ssl_certificate_key /etc/ssl/crt/vinci-u18iptables.key;
  7.  
  8. location / {
  9. proxy_pass http://test2.de;
  10. proxy_redirect off;
  11. proxy_set_header Host $host;
  12. proxy_set_header X-Forwarded-Host $host;
  13. proxy_set_header X-Forwarded-Server $host;
  14. proxy_set_header X-Real-IP $remote_addr;
  15. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  16. proxy_set_header X-Forwarded-Proto $scheme;
  17. proxy_connect_timeout 60;
  18. proxy_read_timeout 60;
  19. proxy_send_timeout 60;
  20. send_timeout 60;
  21. proxy_http_version 1.1;
  22. proxy_set_header Connection "";
  23. }
  24. }
  25.  
  26. RemoteIPHeader X-Forwarded-For
  27. LogFormat "%v:%p %a %l %u %t "%r" %>s %O referer: "%{Referer}i" "%{User-Agent}i"" vhost_combined
  28. LogFormat "%a %l %u %t "%r" %>s %O referer: "%{Referer}i" "%{User-Agent}i"" combined
  29. LogFormat "%a %l %u %t "%r" %>s %O" common
  30. LogFormat "%{Referer}i -> %U" referer
  31. LogFormat "%{User-agent}i" agent
  32.  
  33. <VirtualHost *:80>
  34. ServerName test2.de
  35. ServerAdmin webmaster@localhost
  36. DocumentRoot /var/www/html
  37. ErrorLog ${APACHE_LOG_DIR}/error.log
  38. CustomLog ${APACHE_LOG_DIR}/access.log combined
  39. </VirtualHost>
  40.  
  41. 192.168.80.53 - - [23/Jan/2019:14:47:38 +0000] "GET /info.php HTTP/1.1" 200 21788 referer: "-" "Mozilla/5.0 (X11; Linux x86_64)
  42. AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/71.0.3578.98
  43. Chrome/71.0.3578.98 Safari/537.36"
Add Comment
Please, Sign In to add comment