• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

- New subdomains not working (Forbidden)

D

ddegroot

Guest
Hello All,

We got some very wierd problem... When we try to create a new subdomain for a domain, all the files give a 'Forbidden' message.

I tryed:

- Create a new subdomain (with no options selected)
- Upload a index.html file with just hello in it

When going to the site new.domain.com i get the RedHat 'Red Hat Enterprise Linux Test Page'. When going direct to the file new.domain.com/index.html i get a 'You don't have permission to access /index.html on this server.' message.

I looked up a lot of thing, like permissions, httpd.include file, error log file. nothing different from normal.

When trying the same steps with another domain, everything works great. No need to go to the file directly.

Permissions:
/var/www/vhosts/domain.com/subdomains/new/httpdocs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 19:06 .
drwxr-xr-x 7 root root 4096 Oct 5 18:53 ..
-rw-r--r-- 1 new_domain psacln 6 Oct 5 19:08 index.html

/var/www/vhosts/domain.com/subdomains/new
drwxr-xr-x 7 root root 4096 Oct 5 18:53 .
drwxr-xr-x 15 root psaserv 4096 Oct 5 18:53 ..
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 18:53 cgi-bin
drwxr-x--- 2 root psaserv 4096 Oct 5 18:53 conf
drwxr-x--- 2 root psaserv 4096 Oct 5 18:53 error_docs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 19:06 httpdocs
drwxr-x--- 2 new_domain psaserv 4096 Oct 5 18:53 httpsdocs

httpd.include
<VirtualHost 192.168.1.118:80>
ServerName new.domain.com:80
DocumentRoot /var/www/vhosts/domain.com/subdomains/new/httpdocs
CustomLog /var/www/vhosts/domain.com/statistics/logs/access_log plesklog
ErrorLog /var/www/vhosts/domain.com/statistics/logs/error_log
<IfModule mod_ssl.c>
SSLEngine off
</IfModule>
<Directory /var/www/vhosts/domain.com/subdomains/new/httpdocs>
<IfModule sapi_apache2.c>
php_admin_flag engine off
</IfModule>
<IfModule mod_php5.c>
php_admin_flag engine off
</IfModule>
Options -Includes -ExecCGI
</Directory>
</VirtualHost>

error_log:
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied
[Sun Oct 05 19:12:03 2008] [error] [client 192.168.1.223] (13)Permission denied: access to /index.html denied

I added the host to my windows 'host' so dns could not be the problem.

Also plesk is uptodate to the lastest version.

CPU AuthenticAMD, AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
Version psa v8.6.0_build86080910.19 os_RedHat el5
OS Linux 2.6.18-8.el5


Anyone any idea? I'm out of things to try...

Thanks in advance!!

Dennis,
 
Requesting a file that nog excist does turn in a 'The webpage cannot be found' error. So its working in the correct directory. Also other subdomains are working ok, just new ones are not working (also tryed different names).
 
Hi,

I would recommend rebuilding all web server config files according to records in Plesk database:
/usr/local/psa/admin/bin/websrvmng -v -a
 
Hello Ziba,

Thanks for youre reply. I tryed the command but it did not change the situation..
 
Back
Top