Strutture dati hosting
Jump to navigation
Jump to search
- user nome dell'utente ftp, utente dav, utente mysql e nome del db mysql. max 8 caratteri alfanumerici
- url hostname completo dell'url
LoadModule macro_module "lib/httpd/mod_macro.so" SetEnv ortiche_host debord.ortiche.net <Macro ortiche_vhost $subdomaintld $php $log $cgi $custom $admin> Warning configurando $subdomaintld <VirtualHost *:80> ServerAdmin $admin DocumentRoot "/var/www/vhosts/$subdomaintld/htdocs" ServerName $subdomaintld Use $php $subdomaintld Use $log $subdomaintld Use $cgi $subdomaintld Use $custom $subdomaintld </VirtualHost> <VirtualHost *:443> ServerAdmin $admin DocumentRoot "/var/www/vhosts/$subdomaintld/htdocs" ServerName $subdomaintld Use $php $subdomaintld Use $log $subdomaintld Use $cgi $subdomaintld Use $custom $subdomaintld Alias /hosting_control/ /var/www/vhosts/hosting.ortiche.net/ </VirtualHost> </Macro> <Macro php_on $subdomaintld> SetEnv php on AddType application/x-httpd-php .php php_admin_value open_basedir "/var/www/vhosts/$subdomaintld/htdocs" php_admin_value upload_tmp_dir "/var/www/vhosts/$subdomaintld/htdocs/tmp/" php_admin_value session.save_path "/var/www/vhosts/$subdomaintld/session/" </Macro> <Macro php_off $subdomaintld> SetEnv php off </Macro> <Macro log_acc_err $subdomaintld> SetEnv error_log on SetEnv access_log on CustomLog /var/www/vhosts/$subdomaintld/logs/access.log common env=!dontlog ErrorLog /var/www/vhosts/$subdomaintld/logs/error.log </Macro> <Macro log_err $subdomaintld> SetEnv error_log on SetEnv access_log off CustomLog /dev/null common ErrorLog /var/www/vhosts/$subdomaintld/logs/error.log </Macro> <Macro log_off $subdomaintld> SetEnv error_log off SetEnv access_log off CustomLog /dev/null common ErrorLog /dev/null </Macro> <Macro cgi_on $subdomaintld> SetEnv cgi on ScriptAlias /cgi-bin/ /var/www/vhosts/$subdomaintld/cgi-bin/ </Macro> <Macro cgi_off $subdomaintld> SetEnv cgi off </Macro> <Macro custom $subdomaintld> Include "/var/www/conf/$subdomaintld" SetEnv hosting custom </Macro> <Macro std $subdomaintld> SetEnv hosting std </Macro> #Use ortiche_vhost sub.domain.tld php_on|php_off log_acc_err|log_off cgi_on|cgi_off std|custom admin@ema.il Use ortiche_vhost prova.debord.ortiche.net php_on log_acc_err cgi_off std webmaster@debord.ortiche.net