• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Error 400 Bad Request in Subdomain in Plesk Onyx

Alexander Liebrecht

Basic Pleskian
Hello Community,

I have a problem with a subdomain at https://phabricator.liebrecht-projekte.de

It is bad request error 400. This is the Phabricator tool and I have tried a lot to solve the problem, but nothing has helped.

Also I have reconfigured the subdomain in Plesk via SSH. It did not matter.

Also, I deleted browser cookes, cache, browser history, and other caches. In two different places, cities, in all browsers and different PC shows me the subdomain "Bad Request". It must be something server side or am I wrong?

What can I do or what do I need to check in Apache? What outputs do you need to help me?

Centos 7 is installed. Plesk Onyx 17 and the subdomain runs with the Lets Encrypt certificate.

I spent days in Google investigating the possible bug, but do not know any more. I am grateful to you for any help.
 
Any related details, error messages, etc from domain logs /var/www/vhosts/<domain>/logs/ ?
 
access_ssl_log content
Code:
144.76.6.230 - - [20/Feb/2017:03:39:57 +0100] "GET /robots.txt HTTP/1.1" 400 3237 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.7; http://mj12bot.com/)"
51.15.53.83 - - [20/Feb/2017:03:40:11 +0100] "GET / HTTP/1.1" 400 3586 "https://phabricator.liebrecht-projekte.de/" "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0)"
2a01:4f8:c17:3ade::2 - - [20/Feb/2017:03:51:50 +0100] "GET /diffusion/3/cmsprojekte.git/info/refs?service=git-receive-pack HTTP/1.1" 400 3581 "-" "git/1.8.3.1"
66.249.76.122 - - [20/Feb/2017:04:05:33 +0100] "GET /robots.txt HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.76.123 - - [20/Feb/2017:04:05:34 +0100] "GET / HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.96 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.66.240 - - [20/Feb/2017:04:09:30 +0100] "GET /robots.txt HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.76.121 - - [20/Feb/2017:04:09:31 +0100] "GET /multimeter/?group=host.id.request.context&type=2&request=Ye5g2uvovV._ HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
2a01:4f8:c17:3ade::2 - - [20/Feb/2017:04:15:50 +0100] "GET /diffusion/3/cmsprojekte.git/info/refs?service=git-receive-pack HTTP/1.1" 400 3581 "-" "git/1.8.3.1"
91.204.24.253 - - [20/Feb/2017:04:18:50 +0100] "GET / HTTP/1.1" 400 3581 "https://talk.plesk.com/threads/error-400-bad-request-in-subdomain-in-plesk-onyx.341730/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
91.204.24.253 - - [20/Feb/2017:04:18:51 +0100] "GET /favicon.ico HTTP/1.1" 200 38096 "https://phabricator.liebrecht-projekte.de/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
91.204.24.253 - - [20/Feb/2017:04:19:07 +0100] "GET / HTTP/1.1" 400 708 "https://talk.plesk.com/threads/error-400-bad-request-in-subdomain-in-plesk-onyx.341730/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
91.204.24.253 - - [20/Feb/2017:04:19:16 +0100] "GET / HTTP/1.1" 400 708 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8"
2a01:4f8:c17:3ade::2 - - [20/Feb/2017:04:39:56 +0100] "GET /diffusion/3/cmsprojekte.git/info/refs?service=git-receive-pack HTTP/1.1" 400 3581 "-" "git/1.8.3.1"
66.249.66.240 - - [20/Feb/2017:04:43:42 +0100] "GET /res/1486911591T/defaultX/phabricator/e25569a9/conpherence.pkg.css HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
88.74.66.106 - - [20/Feb/2017:04:47:17 +0100] "GET / HTTP/1.1" 400 3792 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:22 +0100] "GET / HTTP/1.1" 400 708 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:22 +0100] "GET /favicon.ico HTTP/1.1" 200 35223 "https://phabricator.liebrecht-projekte.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:27 +0100] "GET / HTTP/1.1" 400 571 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:27 +0100] "GET /favicon.ico HTTP/1.1" 200 35223 "https://phabricator.liebrecht-projekte.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:28 +0100] "GET / HTTP/1.1" 400 571 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"
88.74.66.106 - - [20/Feb/2017:04:47:29 +0100] "GET /favicon.ico HTTP/1.1" 200 35223 "https://phabricator.liebrecht-projekte.de/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"

error_log Content

Code:
[Thu Feb 16 17:10:24.124813 2017] [ssl:warn] [pid 25637:tid 140152861653120] AH01909: RSA certificate configured for phabricator.liebrecht-projekte.de:443 does NOT include an ID which matches the server name
[Thu Feb 16 17:10:24.125200 2017] [ssl:warn] [pid 25637:tid 140152861653120] AH01909: RSA certificate configured for phabricator.liebrecht-projekte.de:443 does NOT include an ID which matches the server name
[Thu Feb 16 17:16:50.116694 2017] [autoindex:error] [pid 29760:tid 140152223557376] [client 138.201.90.149:47522] AH01276: Cannot serve directory /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/: No matching DirectoryIndex (index.html,index.shtml,index.cfm,index.php,index.htm,index.php) found, and server-generated directory index forbidden by Options directive
[Thu Feb 16 17:18:36.189748 2017] [autoindex:error] [pid 29760:tid 140152173201152] [client 138.201.90.149:47748] AH01276: Cannot serve directory /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/: No matching DirectoryIndex (index.html,index.shtml,index.cfm,index.php,index.htm,index.php) found, and server-generated directory index forbidden by Options directive
[Sat Feb 18 01:20:50.471368 2017] [autoindex:error] [pid 5023:tid 140165164955392] [client 138.201.90.149:53176] AH01276: Cannot serve directory /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/: No matching DirectoryIndex (index.php) found, and server-generated directory index forbidden by Options directive

httpd.conf content

Code:
<IfModule mod_ssl.c>

        <VirtualHost 172.31.1.100:443 >
                ServerName "phabricator.liebrecht-projekte.de:443"
                ServerAlias "www.phabricator.liebrecht-projekte.de"
                ServerAlias "ipv4.phabricator.liebrecht-projekte.de"
                ServerAdmin "[email protected]"
                UseCanonicalName Off

                DocumentRoot "/var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/webroot"
                CustomLog /var/www/vhosts/system/phabricator.liebrecht-projekte.de/logs/access_ssl_log plesklog
                ErrorLog "/var/www/vhosts/system/phabricator.liebrecht-projekte.de/logs/error_log"

                       <IfModule mod_headers.c>
    Header add Access-Control-Allow-Origin "*"
    Header add Access-Control-Allow-Headers "origin, x-requested-with, content-type"
    Header add Access-Control-Allow-Methods "PUT, GET, POST, DELETE, OPTIONS"
</IfModule>

RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$          index.php?__path__=/$1 [B,L,QSA]


<Directory "/var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/webroot">
Require all granted
</Directory>
 
Check that dir module is enabled here Plesk > Tools & Settings > Apache Web server settings
 
I have only found the "userdir" module. It is and has been activated.

Do you mean the "userdir" modules or are there any more of this kind?
 
Check that module is loaded with

# apachectl -M | grep dir
dir_module (shared)
userdir_module (shared)
 
Code:
 There are files or directories with suspicious permissions in the
  root directory of the domain 'phabricator.liebrecht-projekte.de' . [WARNING]
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/libphutil/.git/objects/pack/pack-53960ee6bf55c6d0e06e3e60adc2c086dd3027a1.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/libphutil/.git/objects/pack/pack-85f161e432db4bf0788880f92363ef600dbaff2f.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/libphutil/.git/objects/pack/pack-85f161e432db4bf0788880f92363ef600dbaff2f.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/libphutil/.git/objects/pack/pack-53960ee6bf55c6d0e06e3e60adc2c086dd3027a1.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-32d364fdda0b4d3d5ecd19343447325460d209a1.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-c5be2ea13b402fcf448e828a930afe289ead9194.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-32d364fdda0b4d3d5ecd19343447325460d209a1.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-c5be2ea13b402fcf448e828a930afe289ead9194.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-46b2265bef18a17a90b4eb0017edac397d36124d.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/phabricator/.git/objects/pack/pack-46b2265bef18a17a90b4eb0017edac397d36124d.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/arcanist/.git/objects/pack/pack-b5ff47b7e058b8cdb6d42a02930fa797bfe6fd41.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/arcanist/.git/objects/pack/pack-5a96b2e9a90081639db7ead8c3a2b33944f15c84.pack
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/arcanist/.git/objects/pack/pack-5a96b2e9a90081639db7ead8c3a2b33944f15c84.idx
    - /var/www/vhosts/liebrecht-projekte.de/phabricator.liebrecht-projekte.de/arcanist/.git/objects/pack/pack-b5ff47b7e058b8cdb6d42a02930fa797bfe6fd41.idx

Error messages: 0; Warnings: 2; Errors resolved: 0

[xxxxxxx@liebrecht-projekte arcanist]#

The Permissions for this is "git/psaserv".

Probably the permissions are wrong, if I show the "plesk repair fs -verbose".

How am I supposed to set the permissions?
 
Last edited:
"Plesk repair web phabricator.liebrecht-projekte.de" has just worked. Unfortunately continue "Bad Request".

I have still removed SSL because I thought it could be because of it. Probably something directly in the server or in the server configuration.

In addition, I have created and integrated a new database for Phabricator. That did not help me either. Something is still.
 
Unfortunately, I could not wait any longer because I had been on this error for a week. I created a new subdomain in Plesk and reinstalled Phabricator with database.

Strangely, it now works even under PHP 7.1 because it is the last Phabricator version. I guess times that the Bad Request Error was on the subdomain configuration. But unfortunately we had no success and I had to reinstall everything.

But it is okay for me.
 
Back
Top