vhosts: test.k2patel.in: servername: 'test.k2patel.in' serveraliases: - 'pingtest.k2patel.in' docroot: '/var/www/vhosts/test.k2patel.in/html' manage_docroot: false port: 80 priority: 0 docroot_owner: 'web' docroot_group: 'web' access_log_file: 'test.k2patel.in-access.log' default_vhost: true ensure: 'present' error_log_file: 'test.k2patel.in-error.log' log_level: 'warn' aliases: - scriptalias: '/cgi-bin' path: '/var/www/vhosts/test.k2patel.in/cgi-bin' rewrites: - comment: 'Redirect non https domain to vhost' rewrite_cond: - "%{literal('%')}{HTTPS} off" rewrite_rule: - "(.*) https://%{literal('%')}{HTTP_HOST}%{literal('%')}{REQUEST_URI} [L,R=302]" test.k2patel.in_ssl: servername: 'test.k2patel.in' serveraliases: - 'pingtest.k2patel.in' docroot: '/var/www/vhosts/test.k2patel.in/html' manage_docroot: false port: 443 priority: 0 docroot_owner: 'web' docroot_group: 'web' access_log_file: 'test.k2patel.in_ssl-access.log' default_vhost: true ensure: 'present' error_log_file: 'test.k2patel.in_ssl-error.log' log_level: 'warn' aliases: - alias: '/cgi-bin' path: '/var/www/vhosts/test.k2patel.in/cgi-bin/' - alias: '/pingset' path: '/data/pingset/' - alias: '/whileset' path: '/milker/swingset/' ssl: true ssl_cert: '/etc/pki/tls/certs/k2patel.in.cert' ssl_key: '/etc/pki/tls/private/k2patel.in.key' ssl_ca: '/etc/pki/tls/certs/k2patel.in.ca' ssl_certs_dir: '/etc/pki/tls/certs' directories: - path: '/var/www/vhosts/test.k2patel.in/cgi-bin/' options: - 'ExecCGI' - 'FollowSymlinks' - 'MultiViews' require: - 'all granted' addhandlers: - handler: 'cgi-script' extensions: - '.cgi' - '.pl' - '.p' - '.perl' - '.sh' - '.php' - path: '/var/www/vhosts/test.k2patel.in/html' options: - '+Includes' require: - 'all granted' allow_override: 'All' addhandlers: - handler: 'server-parsed' extensions: - '.shtml' - '.html' custom_fragment: | XBitHack On AddType application/vnd.google-earth.kml+xml .kml - path: '/data/pingset/' directoryindex: 'index.html index.cgi index.pl index.php' override: - 'None' options: - '+Indexes' - '-ExecCGI' - '-Includes' - '-FollowSymLinks' require: - 'all granted' allow_override: 'All' custom_fragment: | IndexOptions FancyIndexing IndexIgnoreReset ON IndexIgnore .??* *~ *# SetHandler none aDDhANDLEr cgi-script .cgi .plg engine off RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo .html .htmls .txt .perl .sh .p .HTML .p .perl .shaDDhANDLEr cgi-script .cgi .pl .p .perl .sh - path: '/milker/swingset/' directoryindex: 'index.html index.cgi index.pl index.php' override: - 'None' options: - '+Indexes' - '-ExecCGI' - '-Includes' - '-FollowSymLinks' require: - 'all granted' allow_override: 'All' custom_fragment: | IndexOptions FancyIndexing IndexIgnoreReset ON IndexIgnore .??* *~ *# SetHandler none aDDhANDLEr cgi-script .cgi .plg engine off RemoveHandler .cgi .php .php3 .php4 .php5 .phtml .pl .py .pyc .pyo .html .htmls .txt .perl .sh .p .HTML .p .perl .shaDDhANDLEr cgi-script .cgi .pl .p .perl .sh