Deployment to tarqvara.com
Deployment
Корневой каталог домена:
$ ls -la
total 32
drwxrwx--t 8 root virt80688 4096 May 11 23:08 .
drwxr-x--x 3 root virt80688 4096 Jun 5 2019 ..
drwxr-xr-x 3 virt80688 virt80688 4096 May 11 22:15 git
lrwxrwxrwx 1 virt80688 virt80688 26 May 11 23:08 htdocs -> ./git/pheix-pool/core/www/
drwxr-xr-x 2 root virt80688 4096 May 11 22:18 logs
dr-xr-x--- 5 root virt80688 4096 Jun 5 2019 phpini
drwxr-xr-x 3 root virt80688 4096 Jun 6 2019 stats
При попытке доступа к https://tarqvara.com/ получаем 500 Internal Server Error.
В логах:
$ tail -n 1 logs/apache.ssl.error.log
[2022-05-11 23:09:54.931078] [vhost: tarqvara.com] [core:alert] [pid 35648] config.c(2117): [client 213.87.152.227:5098] /data01/virt80688/domeenid/www.tarqvara.com/htdocs/.htaccess: Rejecting line 1: ERROR: Options Directive can't contain 'ExecCGI' flags.
.htaccess
$ cat htdocs/.htaccess
Options ExecCGI SymLinksIfOwnerMatch Includes MultiViews
AddHandler cgi-script .pl
DirectoryIndex user.pl
RewriteEngine on
# !!! Replace pheix.org to your servername !!!
# RewriteCond %{HTTP_HOST} ^www.pheix.org$ [NC]
# RewriteRule ^(.*)$ https://pheix.org/$1 [R=301,L]
# RewriteCond %{REQUEST_URI} ^/index\.html?$
# RewriteRule (.*) / [R=301,L]
RewriteRule ^$ user.pl?action=index
RewriteRule ^index.htm$ user.pl?action=index
RewriteRule ^([a-z0-9\-]+).html$ user.pl?action=$1
RewriteRule ^([a-z0-9\-]+)_([a-z0-9]+).html$ user.pl?action=$1&id=$2
RewriteRule ^([a-z0-9\-]+)_([a-z0-9]+)_([a-z0-9]+).html$ user.pl?action=$1&id1=$2&id2=$3
RewriteRule ^sitemap.xml$ user.pl?action=pheix-sitemap-xml
RewriteRule ^rss.xml$ user.pl?action=getnewsrss
ErrorDocument 404 /user.pl?action=404error
Edited by Konstantin Narkhov