179 shaares
1 result
tagged
apache
control
enable/disable
a2ensite $site_name # enable site
a2dissite $site_name # disable site
a2enconf $conf_name # enable configuration file
a2disconf $conf_name # enable configuration file
a2enmod $module_name # enable module
a2dismod $module_name # enable module
a2ctl
a2ctl configtest # test configurations
a2ctl status # show status
a2ctl fullstatus # shows fullstatus
a2ctl -l # list compiled modules
a2ctl -L # list available configuration directives
a2query
a2query -s $module_name # checks whether the site is enabled or return list of available sites
a2query -c $conf_name # checks whether the configuration is enabled or return list of available configurations
a2query -m $module_name # checks whether the module is enabled or return list of available modules
benchmark: ab
Simule 2000 utilisateurs qui effectueront des requĂȘtes entre toutes les 0 et 5 secondes pendant 10 minutes
# 5000 requests from 5 concurrent clients
ab -c 5 -n 5000 $url
# 2000 clients requests between 0-5s during 10mn
siege -d5 -r500 -c2000 -t10M $url
log
# ambau.ovh
<VirtualHost *:80>
ServerName ambau.ovh
ServerAlias www.ambau.ovh
ServerAdmin webmaster@ambau.ovh
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost"
</FilesMatch>
# PHP: SetEnv PHP_VALUE | PHP_ADMIN_VALUE : not rewrite by user
#SetEnv PHP_ADMIN_VALUE "session.gc_maxlifetime = 14400"
#SetEnv PHP_VALUE "upload_max_filesize = 100M"
#php_value upload_max_filesize 100M
DocumentRoot /var/share/www/ambau.ovh/html
<Directory /var/share/www/ambau.ovh/html>
Options -Indexes -MultiViews +FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
#SetEnvIf Remote_Addr "::1" nolog
#SetEnvIf Remote_Addr "127\.0\.0\.1" nolog
#SetEnvIf Remote_Addr "10\.0\.0\.1/24" nolog
#SetEnvIf Remote_Addr "176\.31\.255\.134" nolog
#SetEnvIf Request_Method OPTIONS nolog
SetEnvIf X-Forwarded-For ".+" forwarded
CustomLog "|/usr/bin/logger -p local7.info -t ambau.ovh/apache" combined env=forwarded
#CustomLog "|/usr/bin/logger -p local7.info -t ambau.ovh/apache" combined env=!nolog
#CustomLog "|/usr/bin/logger --rfc3164 -p local7.info -t ambau.ovh/apache -n 176.31.255.134 --udp -P 514" combined env=!nolog
#CustomLog "|/usr/bin/logger --rfc3164 -t ambau.ovh/apache -p info -n 176.31.255.134 --udp -P 514" combined env=!nolog
#CustomLog ${APACHE_LOG_DIR}/ambau.ovh.log combined env=!nolog
ErrorLog "|/usr/bin/logger -p local7.err -t ambau.ovh/apache"
#ErrorLog "|/usr/bin/logger --rfc3164 -p local7.err -t ambau.ovh/apache -n 176.31.255.134 --udp -P 514"
#ErrorLog ${APACHE_LOG_DIR}/ambau.ovh.err
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>