• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Website subdomain - Forbidden access

kadoudal

Regular Pleskian
I have a test website ( Rails deployment)
deployed in the folder: /rails/my_app

with the following vhost.conf :

ServerName mydomain.com
DocumentRoot /var/www/vhosts/mydomain.com/rails/my_app/current/public
<Directory "/var/www/vhosts/mydomain.com/rails/my_app/current/public">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
Deny from all
Allow from all
</Directory>
RailsBaseURI / ( Rails deployment)

for testing purpose ( I want to create subdomains via the API) I created a subdomain : yves.mydomain.com
with the same folder /rails/my_app
trying to access the subdomain, I get a forbidden error ...
what could be wrong ?

thanks for your feedback
 
I guess I have to setup also the subdomain vhost config in
/var/www/vhosts/mydomain.com/subdomains/yves/conf/vhost.conf
with the ServerName yves.mydomain.com
..
then
sudo /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain mydomain.com
and finally
sudo /etc/init.d/apache2 reload

this runs manually , need to find out how to execute it from my app...
 
I never used the Event Manager... so I'll try the 'texan way'.... ;-))
I'll try to:
1- send the xml file to the the PleskAPI so it can set the new subdomain
2- write the subdomain vhost.conf file from my app and run the exec command to copy it on the server and exec the apacheclt reload command
 
Back
Top