SellYourSaas icon indicating copy to clipboard operation
SellYourSaas copied to clipboard

Apache VirtualHost config for myaccount... not working

Open infocillasas opened this issue 2 years ago • 1 comments

Describe the bug A 403 Forbidden page appears when trying to access to the myaccount.mysaasdomain.com

Desktop (please complete the following information):

  • OS: Ubuntu 22.04 / Apache 2.4.52 / PHP 8.1.2

Found a workaround consisting in putting the following line in /etc/apache2/sites-available/myaccount.mysaasdomain.com.conf DocumentRoot /home/admin/wwwroot/dolibarr_sellyoursaas/myaccount

Looks like the webserver cannot traverse the symlink to myaccount.

Could you please update the documentation ?

infocillasas avatar Feb 06 '24 09:02 infocillasas

In your virtual host for myaccount.mysaasdomain.com, did you got

<Directory /home/admin/wwwroot/dolibarr_sellyoursaas/myaccount>
   AllowOverride FileInfo Options
   Options       -Indexes -MultiViews +FollowSymLinks -ExecCGI
   Require all granted
 </Directory>

So with the +FollowSymLinks, apache is allowed to traverse symlinks.

eldy avatar Apr 13 '24 17:04 eldy