Subversion Repositories configs

Rev

Rev 184 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 - 1
#
2
# This is the Apache server configuration file providing SSL support.
3
# It contains the configuration directives to instruct the server how to
4
# serve pages over an https connection. For detailing information about these
5
# directives see <URL:http://httpd.apache.org/docs/2.2/mod/mod_ssl.html>
6
#
7
# Do NOT simply read the instructions in here without understanding
8
# what they do.  They're here only as hints or reminders.  If you are unsure
9
# consult the online docs. You have been warned.
10
#
11
 
12
LoadModule ssl_module modules/mod_ssl.so
13
 
14
#
15
# When we also provide SSL we have to listen to the
16
# the HTTPS port in addition.
17
#
18
Listen 443
141 - 19
NameVirtualHost *:443
4 - 20
 
21
##
22
##  SSL Global Context
23
##
24
##  All SSL configuration in this context applies both to
25
##  the main server and all SSL-enabled virtual hosts.
26
##
27
 
28
#   Pass Phrase Dialog:
29
#   Configure the pass phrase gathering process.
30
#   The filtering dialog program (`builtin' is a internal
31
#   terminal dialog) has to provide the pass phrase on stdout.
32
SSLPassPhraseDialog  builtin
33
 
34
#   Inter-Process Session Cache:
35
#   Configure the SSL Session Cache: First the mechanism
36
#   to use and second the expiring timeout (in seconds).
37
SSLSessionCache         shmcb:/var/cache/mod_ssl/scache(512000)
38
SSLSessionCacheTimeout  300
39
 
40
#   Semaphore:
41
#   Configure the path to the mutual exclusion semaphore the
42
#   SSL engine uses internally for inter-process synchronization.
43
SSLMutex default
44
 
45
#   Pseudo Random Number Generator (PRNG):
46
#   Configure one or more sources to seed the PRNG of the
47
#   SSL library. The seed data should be of good random quality.
48
#   WARNING! On some platforms /dev/random blocks if not enough entropy
49
#   is available. This means you then cannot use the /dev/random device
50
#   because it would lead to very long connection times (as long as
51
#   it requires to make more entropy available). But usually those
52
#   platforms additionally provide a /dev/urandom device which doesn't
53
#   block. So, if available, use this one instead. Read the mod_ssl User
54
#   Manual for more details.
55
SSLRandomSeed startup file:/dev/urandom  256
56
SSLRandomSeed connect builtin
57
#SSLRandomSeed startup file:/dev/random  512
58
#SSLRandomSeed connect file:/dev/random  512
59
#SSLRandomSeed connect file:/dev/urandom 512
60
 
61
#
62
# Use "SSLCryptoDevice" to enable any supported hardware
63
# accelerators. Use "openssl engine -v" to list supported
64
# engine names.  NOTE: If you enable an accelerator and the
65
# server does not start, consult the error logs and ensure
66
# your accelerator is functioning properly.
67
#
68
SSLCryptoDevice builtin
69
#SSLCryptoDevice ubsec
70
 
71
##
72
## SSL Virtual Host Context
73
##
74
 
141 - 75
<VirtualHost *:443>
142 - 76
DocumentRoot "/var/www/munatrading"
186 - 77
ServerName www.dev.munatrading.com
78
ServerAlias dev.munatrading.com
141 - 79
 
142 - 80
ErrorLog logs/ssl_error_log
81
TransferLog logs/ssl_access_log
82
LogLevel warn
141 - 83
 
143 - 84
# HSTS (15768000 seconds = 6 month)
85
Header always set Strict-Transport-Security "max-age=15768000; preload"
86
# Prevent browsers from incorrectly detecting non-scripts as scripts
87
Header always set X-Content-Type-Options nosniff
88
# Cors
89
Header always set Access-Control-Allow-Origin "*"
90
# CSP calculated by FF Addon Laboratory
184 - 91
###Header always set Content-Security-Policy "default-src 'none'; connect-src 'self'; font-src 'self' https://fonts.gstatic.com https://maxcdn.bootstrapcdn.com; frame-src data:; img-src 'self' data: https://counters.auctiva.com https://i.ebayimg.com https://i.thenile.io https://img.comc.com https://ir.ebaystatic.com https://scimg.auctiva.com https://storage.googleapis.com https://*.ebaystatic.com https://ti2.auctiva.com https://www.thenile.com.au https://cdn.shopify.com; script-src 'self' 'unsafe-inline' https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js https://cdn.jsdelivr.net/npm/lodash@4.17.11/lodash.min.js https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.2/js/bootstrap-select.js https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.23/moment-timezone-with-data-2012-2022.min.js https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.23.0/moment.min.js https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js https://maps.googleapis.com/maps-api-v3/api/js/ https://maps.googleapis.com/maps/api/js https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js; style-src 'self' 'unsafe-inline' https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.2/css/ https://fonts.googleapis.com/ https://img.comc.com/Content/eBay/ https://maxcdn.bootstrapcdn.com/bootstrap/4.1.3/css/ https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/ https://scrollinggallery.auctiva.com/gallery/css/2(0)/AUCTIVA/1362185/0/25/ https://storage.googleapis.com/ebay-assets/grandeagle/css/ https://www.w3schools.com/w3css/4/;frame-ancestors 'self'"
143 - 92
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
93
Header always set Referrer-Policy "no-referrer"
94
# Only allow my site to frame itself
95
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
96
Header always set X-Frame-Options SAMEORIGIN
97
# XSS Protection
98
Header set X-XSS-Protection "1; mode=block"
152 - 99
# Redirect all non-www access to www
100
RewriteEngine On
101
RewriteCond %{HTTP_HOST} !^www\. [NC]
102
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
143 - 103
 
142 - 104
SSLEngine on
105
SSLProtocol all -SSLv2 -SSLv3
106
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
107
SSLHonorCipherOrder On
186 - 108
SSLCertificateFile /etc/letsencrypt/live/dev.munatrading.com/cert.pem
109
SSLCertificateKeyFile /etc/letsencrypt/live/dev.munatrading.com/privkey.pem
110
SSLCertificateChainFile /etc/letsencrypt/live/dev.munatrading.com/chain.pem
142 - 111
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
112
    SSLOptions +StdEnvVars
113
</Files>
114
<Directory "/var/www/cgi-bin">
115
    SSLOptions +StdEnvVars
116
</Directory>
117
<Directory "/var/www/munatrading/ebay/listings">
118
  Options +Indexes
119
  IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
120
</Directory>
121
SetEnvIf User-Agent ".*MSIE.*" \
122
         nokeepalive ssl-unclean-shutdown \
123
         downgrade-1.0 force-response-1.0
124
CustomLog logs/ssl_request_log \
125
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
126
</VirtualHost>
141 - 127
 
128
<VirtualHost *:443>
152 - 129
DocumentRoot "/var/www/cheapmusic/www"
186 - 130
ServerName www.dev.findcheapmusic.com
131
ServerAlias dev.findcheapmusic.com
141 - 132
 
146 - 133
ErrorDocument 403 /index.php
134
ErrorDocument 404 /index.php
135
 
141 - 136
ErrorLog logs/ssl_error_log
137
TransferLog logs/ssl_access_log
138
LogLevel warn
139
 
143 - 140
# HSTS (31536000 seconds = 1 year)
141
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
142
# Prevent browsers from incorrectly detecting non-scripts as scripts
143
Header always set X-Content-Type-Options nosniff
144
# Cors
145
Header always set Access-Control-Allow-Origin "*"
146
# Disable unsafe inline/eval, only allow loading of resources (images, fonts, scripts, etc.) over https
186 - 147
###Header always set Content-Security-Policy "default-src 'none'; connect-src 'self'; font-src 'self' data: https://fonts.gstatic.com https://use.fontawesome.com; form-action 'self'; frame-src https://www.google.com https://www.youtube-nocookie.com; img-src 'self' data: http://abs.twimg.com https://abs.twimg.com https://*.walmartimages.com https://images.samash.com https://img.discogs.com https://*.googleusercontent.com https://*.ebaystatic.com https://www.fye.com https://www.musicnotes.com https://platform-lookaside.fbsbx.com https://ad.linksynergy.com https://www.lduhtrp.net https://*.wal.co https://cj.dotomi.com https://www.awltovhc.com https://www.ftjcfx.com https://www.tqlkg.com https://www.emjcd.com https://www.yceml.net https://beacon.affil.walmart.com https://assets.sheetmusicplus.com https://www0.alibris-static.com https://*.mzstatic.com https://via.placeholder.com https://images-na.ssl-images-amazon.com/images/ https://transform.dis.commercecloud.salesforce.com https://www.google-analytics.com https://m.media-amazon.com/images/ https://www.facebook.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://ajax.googleapis.com/ajax/libs/jquery/ https://cdnjs.cloudflare.com/ajax/libs/popper.js/ https://maxcdn.bootstrapcdn.com/bootstrap/ https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://ssl.gstatic.com https://www.googletagmanager.com/gtag/js https://www.google-analytics.com https://use.fontawesome.com/releases/ https://connect.facebook.net/; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com/ https://maxcdn.bootstrapcdn.com/bootstrap/;frame-ancestors 'self';manifest-src 'self'"
143 - 148
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
149
Header always set Referrer-Policy "no-referrer"
150
# Only allow my site to frame itself
151
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
152
Header always set X-Frame-Options SAMEORIGIN
153
# XSS Protection
154
Header set X-XSS-Protection "1; mode=block"
146 - 155
# Redirect all non-www access to www
156
RewriteEngine On
157
RewriteCond %{HTTP_HOST} !^www\. [NC]
158
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
143 - 159
 
141 - 160
SSLEngine on
186 - 161
# intermediate configuration
162
SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
163
SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
164
SSLHonorCipherOrder     off
165
 
166
SSLCertificateFile /etc/letsencrypt/live/dev.findcheapmusic.com/cert.pem
167
SSLCertificateKeyFile /etc/letsencrypt/live/dev.findcheapmusic.com/privkey.pem
168
SSLCertificateChainFile /etc/letsencrypt/live/dev.findcheapmusic.com/chain.pem
142 - 169
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
170
    SSLOptions +StdEnvVars
171
</Files>
172
<Directory "/var/www/cgi-bin">
173
    SSLOptions +StdEnvVars
174
</Directory>
175
SetEnvIf User-Agent ".*MSIE.*" \
176
         nokeepalive ssl-unclean-shutdown \
177
         downgrade-1.0 force-response-1.0
178
CustomLog logs/ssl_request_log \
179
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
180
</VirtualHost>
141 - 181
 
4 - 182
 
142 - 183
<VirtualHost *:443>
184
DocumentRoot "/var/www/archerygear"
186 - 185
ServerName www.dev.archerygearonline.com
186
ServerAlias dev.archerygearonline.com
4 - 187
 
168 - 188
ErrorDocument 403 /index.html
189
ErrorDocument 404 /index.html
152 - 190
 
142 - 191
ErrorLog logs/ssl_error_log
192
TransferLog logs/ssl_access_log
193
LogLevel warn
4 - 194
 
143 - 195
# HSTS (31536000 seconds = 1 year)
196
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
197
# Prevent browsers from incorrectly detecting non-scripts as scripts
198
Header always set X-Content-Type-Options nosniff
199
# Cors
200
Header always set Access-Control-Allow-Origin "*"
201
# CSP calculated by FF Addon Laboratory
184 - 202
#Header always set Content-Security-Policy "default-src 'none'; frame-src https://ws-na.amazon-adsystem.com https://www.youtube-nocookie.com; img-src 'self' data: https://www.google-analytics.com; script-src 'self' 'unsafe-inline' https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js; style-src 'self' 'unsafe-inline' https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/;frame-ancestors 'self'"
143 - 203
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
204
Header always set Referrer-Policy "no-referrer"
205
# Only allow my site to frame itself
206
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
207
Header always set X-Frame-Options SAMEORIGIN
208
# XSS Protection
209
Header set X-XSS-Protection "1; mode=block"
152 - 210
# Redirect all non-www access to www
211
RewriteEngine On
212
RewriteCond %{HTTP_HOST} !^www\. [NC]
213
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
143 - 214
 
142 - 215
SSLEngine on
186 - 216
# intermediate configuration
217
SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
218
SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384
219
SSLHonorCipherOrder     off
220
 
221
SSLCertificateFile /etc/letsencrypt/live/dev.archerygearonline.com/cert.pem
222
SSLCertificateKeyFile /etc/letsencrypt/live/dev.archerygearonline.com/privkey.pem
223
SSLCertificateChainFile /etc/letsencrypt/live/dev.archerygearonline.com/chain.pem
4 - 224
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
225
    SSLOptions +StdEnvVars
226
</Files>
227
<Directory "/var/www/cgi-bin">
228
    SSLOptions +StdEnvVars
229
</Directory>
230
SetEnvIf User-Agent ".*MSIE.*" \
231
         nokeepalive ssl-unclean-shutdown \
232
         downgrade-1.0 force-response-1.0
233
CustomLog logs/ssl_request_log \
234
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
132 - 235
</VirtualHost>