Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache VirtualHost config for myaccount... not working #337

Open
infocillasas opened this issue Feb 6, 2024 · 1 comment
Open

Apache VirtualHost config for myaccount... not working #337

infocillasas opened this issue Feb 6, 2024 · 1 comment
Labels
Bug Something isn't working discussion Further information is requested

Comments

@infocillasas
Copy link

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 infocillasas added the Bug Something isn't working label Feb 6, 2024
@eldy
Copy link
Member

eldy commented Apr 13, 2024

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 eldy added the discussion Further information is requested label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working discussion Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants