Subversion Repositories configs

Rev

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

Rev Author Line No. Line
192 - 1
#
2
# When we also provide SSL we have to listen to the
3
# standard HTTPS port in addition.
4
#
5
Listen 443 https
6
 
7
##
8
##  SSL Global Context
9
##
10
##  All SSL configuration in this context applies both to
11
##  the main server and all SSL-enabled virtual hosts.
12
##
13
 
14
#   Pass Phrase Dialog:
15
#   Configure the pass phrase gathering process.
16
#   The filtering dialog program (`builtin' is a internal
17
#   terminal dialog) has to provide the pass phrase on stdout.
18
SSLPassPhraseDialog exec:/usr/libexec/httpd-ssl-pass-dialog
19
 
20
#   Inter-Process Session Cache:
21
#   Configure the SSL Session Cache: First the mechanism
22
#   to use and second the expiring timeout (in seconds).
23
SSLSessionCache         shmcb:/run/httpd/sslcache(512000)
24
SSLSessionCacheTimeout  300
25
 
26
#
27
# Use "SSLCryptoDevice" to enable any supported hardware
28
# accelerators. Use "openssl engine -v" to list supported
29
# engine names.  NOTE: If you enable an accelerator and the
30
# server does not start, consult the error logs and ensure
31
# your accelerator is functioning properly.
32
#
33
SSLCryptoDevice builtin
34
#SSLCryptoDevice ubsec
35
 
36
##
37
## SSL Virtual Host Context
38
##
39
 
40
<VirtualHost _default_:443>
197 - 41
Protocols h2 http/1.1
192 - 42
 
43
# General setup for the virtual host, inherited from global configuration
209 - 44
DocumentRoot "/var/www/html"
192 - 45
#ServerName www.example.com:443
46
 
209 - 47
<Directory /var/www/html/wordpress>
48
    Options Indexes FollowSymLinks MultiViews
49
    AllowOverride All
50
    Order allow,deny
51
    allow from all
52
</Directory>
53
<Directory /var/www/html/wp>
54
    Options Indexes FollowSymLinks MultiViews
55
    AllowOverride All
56
    Order allow,deny
57
    allow from all
58
</Directory>
59
 
192 - 60
# Use separate log files for the SSL virtual host; note that LogLevel
61
# is not inherited from httpd.conf.
62
ErrorLog logs/ssl_error_log
63
TransferLog logs/ssl_access_log
64
LogLevel warn
65
 
66
#   SSL Engine Switch:
67
#   Enable/Disable SSL for this virtual host.
68
SSLEngine on
69
 
70
#   List the protocol versions which clients are allowed to connect with.
71
#   The OpenSSL system profile is used by default.  See
72
#   update-crypto-policies(8) for more details.
73
#SSLProtocol all -SSLv3
74
#SSLProxyProtocol all -SSLv3
75
 
76
#   User agents such as web browsers are not configured for the user's
77
#   own preference of either security or performance, therefore this
78
#   must be the prerogative of the web server administrator who manages
79
#   cpu load versus confidentiality, so enforce the server's cipher order.
80
SSLHonorCipherOrder on
81
 
82
#   SSL Cipher Suite:
83
#   List the ciphers that the client is permitted to negotiate.
84
#   See the mod_ssl documentation for a complete list.
85
#   The OpenSSL system profile is configured by default.  See
86
#   update-crypto-policies(8) for more details.
87
SSLCipherSuite PROFILE=SYSTEM
88
SSLProxyCipherSuite PROFILE=SYSTEM
89
 
90
#   Point SSLCertificateFile at a PEM encoded certificate.  If
91
#   the certificate is encrypted, then you will be prompted for a
92
#   pass phrase.  Note that restarting httpd will prompt again.  Keep
93
#   in mind that if you have both an RSA and a DSA certificate you
94
#   can configure both in parallel (to also allow the use of DSA
95
#   ciphers, etc.)
96
#   Some ECC cipher suites (http://www.ietf.org/rfc/rfc4492.txt)
97
#   require an ECC certificate which can also be configured in
98
#   parallel.
99
SSLCertificateFile /etc/pki/tls/certs/httpd.crt
100
 
101
#   Server Private Key:
102
#   If the key is not combined with the certificate, use this
103
#   directive to point at the key file.  Keep in mind that if
104
#   you've both a RSA and a DSA private key you can configure
105
#   both in parallel (to also allow the use of DSA ciphers, etc.)
106
#   ECC keys, when in use, can also be configured in parallel
107
SSLCertificateKeyFile /etc/pki/tls/private/httpd.key
108
 
109
#   Server Certificate Chain:
110
#   Point SSLCertificateChainFile at a file containing the
111
#   concatenation of PEM encoded CA certificates which form the
112
#   certificate chain for the server certificate. Alternatively
113
#   the referenced file can be the same as SSLCertificateFile
114
#   when the CA certificates are directly appended to the server
115
#   certificate for convenience.
116
#SSLCertificateChainFile /etc/pki/tls/certs/server-chain.crt
117
 
118
#   Certificate Authority (CA):
119
#   Set the CA certificate verification path where to find CA
120
#   certificates for client authentication or alternatively one
121
#   huge file containing all of them (file must be PEM encoded)
122
#SSLCACertificateFile /etc/pki/tls/certs/ca-bundle.crt
123
 
124
#   Client Authentication (Type):
125
#   Client certificate verification type and depth.  Types are
126
#   none, optional, require and optional_no_ca.  Depth is a
127
#   number which specifies how deeply to verify the certificate
128
#   issuer chain before deciding the certificate is not valid.
129
#SSLVerifyClient require
130
#SSLVerifyDepth  10
131
 
132
#   Access Control:
133
#   With SSLRequire you can do per-directory access control based
134
#   on arbitrary complex boolean expressions containing server
135
#   variable checks and other lookup directives.  The syntax is a
136
#   mixture between C and Perl.  See the mod_ssl documentation
137
#   for more details.
138
#<Location />
139
#SSLRequire (    %{SSL_CIPHER} !~ m/^(EXP|NULL)/ \
140
#            and %{SSL_CLIENT_S_DN_O} eq "Snake Oil, Ltd." \
141
#            and %{SSL_CLIENT_S_DN_OU} in {"Staff", "CA", "Dev"} \
142
#            and %{TIME_WDAY} >= 1 and %{TIME_WDAY} <= 5 \
143
#            and %{TIME_HOUR} >= 8 and %{TIME_HOUR} <= 20       ) \
144
#           or %{REMOTE_ADDR} =~ m/^192\.76\.162\.[0-9]+$/
145
#</Location>
146
 
147
#   SSL Engine Options:
148
#   Set various options for the SSL engine.
149
#   o FakeBasicAuth:
150
#     Translate the client X.509 into a Basic Authorisation.  This means that
151
#     the standard Auth/DBMAuth methods can be used for access control.  The
152
#     user name is the `one line' version of the client's X.509 certificate.
153
#     Note that no password is obtained from the user. Every entry in the user
154
#     file needs this password: `xxj31ZMTZzkVA'.
155
#   o ExportCertData:
156
#     This exports two additional environment variables: SSL_CLIENT_CERT and
157
#     SSL_SERVER_CERT. These contain the PEM-encoded certificates of the
158
#     server (always existing) and the client (only existing when client
159
#     authentication is used). This can be used to import the certificates
160
#     into CGI scripts.
161
#   o StdEnvVars:
162
#     This exports the standard SSL/TLS related `SSL_*' environment variables.
163
#     Per default this exportation is switched off for performance reasons,
164
#     because the extraction step is an expensive operation and is usually
165
#     useless for serving static content. So one usually enables the
166
#     exportation for CGI and SSI requests only.
167
#   o StrictRequire:
168
#     This denies access when "SSLRequireSSL" or "SSLRequire" applied even
169
#     under a "Satisfy any" situation, i.e. when it applies access is denied
170
#     and no other module can change it.
171
#   o OptRenegotiate:
172
#     This enables optimized SSL connection renegotiation handling when SSL
173
#     directives are used in per-directory context.
174
#SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
175
<FilesMatch "\.(cgi|shtml|phtml|php)$">
176
    SSLOptions +StdEnvVars
177
</FilesMatch>
178
<Directory "/var/www/cgi-bin">
179
    SSLOptions +StdEnvVars
180
</Directory>
181
 
182
#   SSL Protocol Adjustments:
183
#   The safe and default but still SSL/TLS standard compliant shutdown
184
#   approach is that mod_ssl sends the close notify alert but doesn't wait for
185
#   the close notify alert from client. When you need a different shutdown
186
#   approach you can use one of the following variables:
187
#   o ssl-unclean-shutdown:
188
#     This forces an unclean shutdown when the connection is closed, i.e. no
189
#     SSL close notify alert is sent or allowed to be received.  This violates
190
#     the SSL/TLS standard but is needed for some brain-dead browsers. Use
191
#     this when you receive I/O errors because of the standard approach where
192
#     mod_ssl sends the close notify alert.
193
#   o ssl-accurate-shutdown:
194
#     This forces an accurate shutdown when the connection is closed, i.e. a
195
#     SSL close notify alert is sent and mod_ssl waits for the close notify
196
#     alert of the client. This is 100% SSL/TLS standard compliant, but in
197
#     practice often causes hanging connections with brain-dead browsers. Use
198
#     this only for browsers where you know that their SSL implementation
199
#     works correctly.
200
#   Notice: Most problems of broken clients are also related to the HTTP
201
#   keep-alive facility, so you usually additionally want to disable
202
#   keep-alive for those clients, too. Use variable "nokeepalive" for this.
203
#   Similarly, one has to force some clients to use HTTP/1.0 to workaround
204
#   their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
205
#   "force-response-1.0" for this.
206
BrowserMatch "MSIE [2-5]" \
207
         nokeepalive ssl-unclean-shutdown \
208
         downgrade-1.0 force-response-1.0
209
 
210
#   Per-Server Logging:
211
#   The home of a custom SSL log file. Use this when you want a
212
#   compact non-error SSL logfile on a virtual host basis.
213
CustomLog logs/ssl_request_log \
214
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
215
 
216
</VirtualHost>
217
 
218
 
219
 
220
 
221
<VirtualHost *:443>
222
DocumentRoot "/var/www/munatrading"
223
ServerName www.dev.munatrading.com
224
ServerAlias dev.munatrading.com
197 - 225
Protocols h2 http/1.1
192 - 226
 
227
ErrorLog logs/ssl_error_log
228
TransferLog logs/ssl_access_log
229
LogLevel warn
230
 
231
# HSTS (15768000 seconds = 6 month)
232
Header always set Strict-Transport-Security "max-age=15768000; preload"
233
# Prevent browsers from incorrectly detecting non-scripts as scripts
234
Header always set X-Content-Type-Options nosniff
235
# Cors
236
Header always set Access-Control-Allow-Origin "*"
237
# CSP calculated by FF Addon Laboratory
238
###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'"
239
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
240
Header always set Referrer-Policy "no-referrer"
241
# Only allow my site to frame itself
242
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
243
Header always set X-Frame-Options SAMEORIGIN
244
# XSS Protection
245
Header set X-XSS-Protection "1; mode=block"
246
# Redirect all non-www access to www
247
RewriteEngine On
248
RewriteCond %{HTTP_HOST} !^www\. [NC]
249
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
250
 
251
SSLEngine on
252
SSLProtocol all -SSLv2 -SSLv3
253
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
254
SSLHonorCipherOrder On
255
SSLCertificateFile /etc/letsencrypt/live/dev.munatrading.com/cert.pem
256
SSLCertificateKeyFile /etc/letsencrypt/live/dev.munatrading.com/privkey.pem
257
SSLCertificateChainFile /etc/letsencrypt/live/dev.munatrading.com/chain.pem
258
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
259
    SSLOptions +StdEnvVars
260
</Files>
261
<Directory "/var/www/cgi-bin">
262
    SSLOptions +StdEnvVars
263
</Directory>
264
<Directory "/var/www/munatrading/ebay/listings">
265
  Options +Indexes
266
  IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
267
</Directory>
268
SetEnvIf User-Agent ".*MSIE.*" \
269
         nokeepalive ssl-unclean-shutdown \
270
         downgrade-1.0 force-response-1.0
271
CustomLog logs/ssl_request_log \
272
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
273
</VirtualHost>
274
 
275
<VirtualHost *:443>
276
DocumentRoot "/var/www/cheapmusic/www"
277
ServerName www.dev.findcheapmusic.com
278
ServerAlias dev.findcheapmusic.com
197 - 279
Protocols h2 http/1.1
192 - 280
 
281
ErrorDocument 403 /index.php
282
ErrorDocument 404 /index.php
283
 
284
ErrorLog logs/ssl_error_log
285
TransferLog logs/ssl_access_log
286
LogLevel warn
287
 
288
# HSTS (31536000 seconds = 1 year)
289
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
290
# Prevent browsers from incorrectly detecting non-scripts as scripts
291
Header always set X-Content-Type-Options nosniff
292
# Cors
293
Header always set Access-Control-Allow-Origin "*"
294
# Disable unsafe inline/eval, only allow loading of resources (images, fonts, scripts, etc.) over https
295
###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'"
296
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
297
Header always set Referrer-Policy "no-referrer"
298
# Only allow my site to frame itself
299
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
300
Header always set X-Frame-Options SAMEORIGIN
301
# XSS Protection
302
Header set X-XSS-Protection "1; mode=block"
303
# Redirect all non-www access to www
304
RewriteEngine On
305
RewriteCond %{HTTP_HOST} !^www\. [NC]
306
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
307
 
308
SSLEngine on
309
# intermediate configuration
310
SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
311
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
312
SSLHonorCipherOrder     off
313
 
314
SSLCertificateFile /etc/letsencrypt/live/dev.findcheapmusic.com/cert.pem
315
SSLCertificateKeyFile /etc/letsencrypt/live/dev.findcheapmusic.com/privkey.pem
316
SSLCertificateChainFile /etc/letsencrypt/live/dev.findcheapmusic.com/chain.pem
317
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
318
    SSLOptions +StdEnvVars
319
</Files>
320
<Directory "/var/www/cgi-bin">
321
    SSLOptions +StdEnvVars
322
</Directory>
323
SetEnvIf User-Agent ".*MSIE.*" \
324
         nokeepalive ssl-unclean-shutdown \
325
         downgrade-1.0 force-response-1.0
326
CustomLog logs/ssl_request_log \
327
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
328
</VirtualHost>
329
 
330
 
331
<VirtualHost *:443>
332
DocumentRoot "/var/www/archerygear"
333
ServerName www.dev.archerygearonline.com
334
ServerAlias dev.archerygearonline.com
197 - 335
Protocols h2 http/1.1
192 - 336
 
337
ErrorDocument 403 /index.html
338
ErrorDocument 404 /index.html
339
 
340
ErrorLog logs/ssl_error_log
341
TransferLog logs/ssl_access_log
342
LogLevel warn
343
 
344
# HSTS (31536000 seconds = 1 year)
345
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
346
# Prevent browsers from incorrectly detecting non-scripts as scripts
347
Header always set X-Content-Type-Options nosniff
348
# Cors
349
Header always set Access-Control-Allow-Origin "*"
350
# CSP calculated by FF Addon Laboratory
351
#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'"
352
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
353
Header always set Referrer-Policy "no-referrer"
354
# Only allow my site to frame itself
355
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
356
Header always set X-Frame-Options SAMEORIGIN
357
# XSS Protection
358
Header set X-XSS-Protection "1; mode=block"
359
# Redirect all non-www access to www
360
RewriteEngine On
361
RewriteCond %{HTTP_HOST} !^www\. [NC]
362
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
363
 
364
SSLEngine on
365
# intermediate configuration
366
SSLProtocol             all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
367
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
368
SSLHonorCipherOrder     off
369
 
370
SSLCertificateFile /etc/letsencrypt/live/dev.archerygearonline.com/cert.pem
371
SSLCertificateKeyFile /etc/letsencrypt/live/dev.archerygearonline.com/privkey.pem
372
SSLCertificateChainFile /etc/letsencrypt/live/dev.archerygearonline.com/chain.pem
373
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
374
    SSLOptions +StdEnvVars
375
</Files>
376
<Directory "/var/www/cgi-bin">
377
    SSLOptions +StdEnvVars
378
</Directory>
379
SetEnvIf User-Agent ".*MSIE.*" \
380
         nokeepalive ssl-unclean-shutdown \
381
         downgrade-1.0 force-response-1.0
382
CustomLog logs/ssl_request_log \
383
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
384
</VirtualHost>
209 - 385
 
386
<VirtualHost *:443>
387
DocumentRoot "/var/www/html/wp/kirbykerns"
388
ServerName www.kkc.ujsoftware.com
389
ServerAlias kkc.ujsoftware.com
390
Protocols h2 http/1.1
391
 
392
ErrorLog logs/ssl_error_log
393
TransferLog logs/ssl_access_log
394
LogLevel warn
395
 
396
# HSTS (15768000 seconds = 6 month)
397
Header always set Strict-Transport-Security "max-age=15768000; preload"
398
# Prevent browsers from incorrectly detecting non-scripts as scripts
399
Header always set X-Content-Type-Options nosniff
400
# Cors
401
Header always set Access-Control-Allow-Origin "*"
402
# CSP calculated by FF Addon Laboratory
403
###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'"
404
# Disable referrers for browsers that don't support strict-origin-when-cross-origin; Uses strict-origin-when-cross-origin for browsers that do
405
Header always set Referrer-Policy "no-referrer"
406
# Only allow my site to frame itself
407
#add above# Header always add Content-Security-Policy "frame-ancestors 'self'"
408
Header always set X-Frame-Options SAMEORIGIN
409
# XSS Protection
410
Header set X-XSS-Protection "1; mode=block"
411
# Redirect all non-www access to www
412
RewriteEngine On
413
RewriteCond %{HTTP_HOST} !^www\. [NC]
414
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
415
 
416
SSLEngine on
417
SSLProtocol all -SSLv2 -SSLv3
418
SSLCipherSuite EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
419
SSLHonorCipherOrder On
420
SSLCertificateFile /etc/letsencrypt/live/kkc.ujsoftware.com/cert.pem
421
SSLCertificateKeyFile /etc/letsencrypt/live/kkc.ujsoftware.com/privkey.pem
422
SSLCertificateChainFile /etc/letsencrypt/live/kkc.ujsoftware.com/chain.pem
423
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
424
    SSLOptions +StdEnvVars
425
</Files>
426
<Directory "/var/www/cgi-bin">
427
    SSLOptions +StdEnvVars
428
</Directory>
429
<Directory "/var/www/html/wp/kirbykerns/ebay/listings">
430
  Options +Indexes
431
  IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble
432
</Directory>
433
SetEnvIf User-Agent ".*MSIE.*" \
434
         nokeepalive ssl-unclean-shutdown \
435
         downgrade-1.0 force-response-1.0
436
CustomLog logs/ssl_request_log \
437
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
438
</VirtualHost>