Commit 4fa69277 authored by Xavier Guimard's avatar Xavier Guimard

Update comments (Closes: #287)

Also #583 for headers management
parent 0f8fe789
......@@ -38,5 +38,7 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
# #PerlHeaderParserHandler Apache::Constants::DECLINED
#</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -35,6 +35,8 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
# #PerlHeaderParserHandler Apache2::Const::DECLINED
#</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -49,6 +49,8 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
# #PerlHeaderParserHandler Apache2::Const::DECLINED
#</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -39,6 +39,8 @@ ErrorDocument 503 http://auth.__DNSDOMAIN__/?lmError=503
# #PerlHeaderParserHandler Apache2::Const::DECLINED
#</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -13,6 +13,9 @@ server {
# Client requests
location / {
deny all;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
# Uncomment this if status is enabled
......@@ -21,7 +24,6 @@ server {
# deny all;
# include /etc/nginx/fastcgi_params;
# fastcgi_pass __PSGISERVERSOCKET__;
# fastcgi_param LLTYPE status;
#}
}
......@@ -93,5 +93,7 @@
Options +FollowSymLinks
</Directory>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -118,5 +118,6 @@
Options +FollowSymLinks
</Directory>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -97,5 +97,6 @@
Options +FollowSymLinks
</Directory>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -16,6 +16,9 @@ server {
}
location / {
try_files $uri $uri/ =404;
try_files $uri $uri/ =404;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
}
......@@ -97,6 +97,9 @@
ExpiresDefault "access plus 1 month"
</IfModule>
</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
# Best performance under ModPerl::Registry
......@@ -110,4 +113,3 @@
# Uncomment this line if you use portal SOAP capabilities
#require SOAP::Lite;
</Perl>
......@@ -91,6 +91,9 @@
ExpiresDefault "access plus 1 month"
</IfModule>
</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
##############################################
......@@ -107,4 +110,4 @@
# Uncomment this line if you use portal SOAP capabilities
#require SOAP::Lite;
</Perl>
s
......@@ -121,6 +121,9 @@
ExpiresDefault "access plus 1 month"
</IfModule>
</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
##############################################
......@@ -137,4 +140,3 @@
# Uncomment this line if you use portal SOAP capabilities
#require SOAP::Lite;
</Perl>
......@@ -96,6 +96,9 @@
ExpiresDefault "access plus 1 month"
</IfModule>
</Location>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
##############################################
......
......@@ -14,6 +14,9 @@ server {
}
location / {
try_files $uri $uri/ =404;
try_files $uri $uri/ =404;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
}
......@@ -32,5 +32,6 @@
DirectoryIndex index.pl index.html
</IfModule>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -35,5 +35,6 @@
DirectoryIndex index.pl index.html
</IfModule>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -41,5 +41,6 @@
DirectoryIndex index.pl index.html
</IfModule>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -36,5 +36,6 @@
DirectoryIndex index.pl index.html
</IfModule>
# Uncomment this if site if you use SSL only
#Header set Strict-Transport-Security 15768000
</VirtualHost>
......@@ -19,7 +19,6 @@ server {
# Keep original request (LLNG server will received /llauth)
fastcgi_param X_ORIGINAL_URI $request_uri;
}
# Client requests
......@@ -30,38 +29,31 @@ server {
error_page 401 $lmlocation;
try_files $uri $uri/ =404;
# Add as many 3-lines block as headers returned by configuration for this
# template
auth_request_set $headername1 $upstream_http_headername1;
auth_request_set $headervalue1 $upstream_http_headervalue1;
#proxy_set_header $headername1 $headervalue1;
# OR
#fastcgi_param $fheadername1 $headervalue1;
##################################
# PASSING HEADERS TO APPLICATION #
##################################
auth_request_set $headername2 $upstream_http_headername2;
auth_request_set $headervalue2 $upstream_http_headervalue2;
#proxy_set_header $headername2 $headervalue2;
# OR
#fastcgi_param $fheadername2 $headervalue2;
auth_request_set $headername3 $upstream_http_headername3;
auth_request_set $headervalue3 $upstream_http_headervalue3;
#proxy_set_header $headername3 $headervalue3;
# OR
#fastcgi_param $fheadername3 $headervalue3;
# IF LUA IS SUPPORTED
#include /path/to/nginx-lua-headers.conf
auth_request_set $headername4 $upstream_http_headername4;
auth_request_set $headervalue4 $upstream_http_headervalue4;
#proxy_set_header $headername4 $headervalue4;
# ELSE
# Set manually your headers
#auth_request_set $authuser $upstream_http_auth_user;
#proxy_set_header Auth-User $authuser;
# OR
#fastcgi_param $fheadername4 $headervalue4;
#fastcgi_param HTTP_AUTH_USER $authuser;
# Uncomment this if you use https only
#add_header Strict-Transport-Security "15768000";
}
location = /lmstatus {
fastcgi_pass __PSGISERVERSOCKET__;
}
#location = /lmstatus {
# allow 127.0.0.1;
# deny all;
# include /etc/nginx/fastcgi_params;
# fastcgi_pass __PSGISERVERSOCKET__;
# fastcgi_pass unix:__pwd__/e2e-tests/conf/llng.sock;
# fastcgi_param LLTYPE status;
#}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment