Dette viser forskellene mellem den valgte og den nuværende udgave af dokumentet. Gul er linjer der findes i den gamle udgave, og grøn er linjer der findes i den nuværende.
| Begge sider forrige revision Forrige revision Næste revision | Forrige revision | ||
|
webserver_with_apache_php [2021/01/12 20:33] noer |
webserver_with_apache_php [2021/01/12 22:47] (nuværende) noer |
||
|---|---|---|---|
| Linje 13: | Linje 13: | ||
| Enable some modules | Enable some modules | ||
| < | < | ||
| - | a2enmod proxy_fcgi setenvif md | + | a2enmod proxy_fcgi setenvif |
| </ | </ | ||
| Linje 20: | Linje 20: | ||
| < | < | ||
| wget https:// | wget https:// | ||
| + | tar -C /usr/local -xf ioncube_loaders_lin_x86-64.tar.gz | ||
| </ | </ | ||
| - | |||
| - | Copy content to ''/ | ||
| Create file ''/ | Create file ''/ | ||
| Linje 34: | Linje 33: | ||
| ln -s / | ln -s / | ||
| </ | </ | ||
| + | |||
| + | |||
| + | === PHP Configuration === | ||
| + | Create web home directory with '' | ||
| + | |||
| + | Create file ''/ | ||
| + | < | ||
| + | [user_hostinggl] | ||
| + | listen = "/ | ||
| + | listen.owner = " | ||
| + | listen.group = " | ||
| + | listen.mode = 0660 | ||
| + | user = " | ||
| + | group = " | ||
| + | pm = ondemand | ||
| + | pm.max_children = 25 | ||
| + | pm.process_idle_timeout = 15 | ||
| + | slowlog = "/ | ||
| + | php_admin_value[error_log] = "/ | ||
| + | php_admin_flag[log_errors] = on | ||
| + | php_admin_value[sys_temp_dir] = "/ | ||
| + | php_admin_value[upload_tmp_dir] = "/ | ||
| + | php_admin_value[max_input_vars] = 10000 | ||
| + | php_value[session.save_handler] = files | ||
| + | php_value[session.save_path] = "/ | ||
| + | env[TMPDIR] = "/ | ||
| + | catch_workers_output = yes | ||
| + | </ | ||
| + | |||
| + | |||
| + | === Apache Configuration === | ||
| + | Add these 2 lines to ''/ | ||
| + | < | ||
| + | # Set the location of the SSL OCSP Stapling Cache | ||
| + | | ||
| + | </ | ||
| + | |||
| + | Add ''/ | ||
| + | < | ||
| + | # Baseline setting to Include for SSL sites | ||
| + | |||
| + | SSLEngine on | ||
| + | |||
| + | # Intermediate configuration, | ||
| + | SSLProtocol | ||
| + | SSLCipherSuite | ||
| + | SSLHonorCipherOrder | ||
| + | SSLCompression | ||
| + | |||
| + | SSLOptions +StrictRequire | ||
| + | |||
| + | # Add vhost name to log entries: | ||
| + | #LogFormat "%h %l %u %t \" | ||
| + | #LogFormat "%v %h %l %u %t \" | ||
| + | |||
| + | #CustomLog / | ||
| + | #LogLevel warn | ||
| + | #ErrorLog / | ||
| + | |||
| + | # Always ensure Cookies have " | ||
| + | #Header edit Set-Cookie (? | ||
| + | |||
| + | # HSTS | ||
| + | Header always set Strict-Transport-Security " | ||
| + | Header always set X-Frame-Options DENY | ||
| + | |||
| + | # OCSP | ||
| + | SSLUseStapling on | ||
| + | SSLStaplingResponseMaxAge 1800 | ||
| + | SSLStaplingResponderTimeout 5 | ||
| + | SSLStaplingReturnResponderErrors off | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | </ | ||
| + | |||
| Linje 41: | Linje 116: | ||
| ServerName hosting.gl | ServerName hosting.gl | ||
| ServerAlias www.hosting.gl | ServerAlias www.hosting.gl | ||
| - | DocumentRoot / | + | DocumentRoot / |
| ServerAdmin webmaster@hosting.gl | ServerAdmin webmaster@hosting.gl | ||
| UseCanonicalName On | UseCanonicalName On | ||
| Linje 64: | Linje 139: | ||
| ServerName hosting.gl | ServerName hosting.gl | ||
| ServerAlias www.hosting.gl | ServerAlias www.hosting.gl | ||
| - | DocumentRoot / | + | DocumentRoot / |
| ServerAdmin webmaster@hosting.gl | ServerAdmin webmaster@hosting.gl | ||
| UseCanonicalName On | UseCanonicalName On | ||
| Linje 74: | Linje 149: | ||
| Require all granted | Require all granted | ||
| </ | </ | ||
| - | |||
| - | Header always set X-Frame-Options DENY | ||
| < | < | ||