Page 1 of 2

[HELP]vestacp images are 403 forbidden

Posted: Thu Sep 22, 2016 2:31 pm
by RamMae
How do I fix this?
Image

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 12:21 pm
by skurudo
Do you use CSF addon, correct?
Why do not ask in viewtopic.php?f=20&t=10209 ?

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 1:28 pm
by droopy
I have SAME problem with my website.
NEW fresh install of vestacp gives problems.

Any idea?

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 1:29 pm
by skurudo
droopy wrote:I have SAME problem with my website.
NEW fresh install of vestacp gives problems.
Any idea?
Do you use CSF addon, correct?
Same how?

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 1:35 pm
by droopy
I make a normal installation and even i could not list a directory as shows Forbidden.
Something is wrong in the default vestacp installation

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 1:39 pm
by skurudo
droopy wrote:I make a normal installation and even i could not list a directory as shows Forbidden.
Something is wrong in the default vestacp installation
Show something please - screenshot or log?
Witch OS do you use?

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 2:04 pm
by droopy
I am using
CentOS release 6.8 (Final)

Even i just create a directory inside public_html/test/
And instead of listing the files it shows FORBIDDEN (without any .htaccess restriction or anything)

Normal installation only. Create a directory xxx.com/test and shows 403 forbidden without listing files

Re: [HELP]vestacp images are 403 forbidden

Posted: Fri Sep 23, 2016 11:31 pm
by mike08
droopy wrote:I am using
CentOS release 6.8 (Final)

Even i just create a directory inside public_html/test/
And instead of listing the files it shows FORBIDDEN (without any .htaccess restriction or anything)

Normal installation only. Create a directory xxx.com/test and shows 403 forbidden without listing files
That is because default apache templates in vesta don't allow it, all the templates have -Indexes in it which you will need to change it to +indexes in order to display all files/directories when there isn't a index.php/html file there.

Here is a quick example of what I'm talking about:

Code: Select all

<VirtualHost %ip%:%web_port%>

    ServerName %domain_idn%
    %alias_string%
    ServerAdmin %email%
    DocumentRoot %docroot%
    ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
    Alias /vstats/ %home%/%user%/web/%domain%/stats/
    Alias /error/ %home%/%user%/web/%domain%/document_errors/
    #SuexecUserGroup %user% %group%
    CustomLog /var/log/%web_system%/domains/%domain%.bytes bytes
    CustomLog /var/log/%web_system%/domains/%domain%.log combined
    ErrorLog /var/log/%web_system%/domains/%domain%.error.log
    <Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
    </Directory>
    <Directory %home%/%user%/web/%domain%/stats>
        AllowOverride All
    </Directory>

    <IfModule mod_ruid2.c>
        RMode config
        RUidGid %user% %group%
        RGroups apache
    </IfModule>
    <IfModule itk.c>
        AssignUserID %user% %group%
    </IfModule>

    Include %home%/%user%/conf/web/%web_system%.%domain%.conf*

</VirtualHost>
To know more about the location of these templates please reffer to: http://vestacp.com/docs/#config-log-loc ... hel-centos for centos based system and http://vestacp.com/docs/#config-log-loc ... ian-ubuntu for debian based systems.

Also, you haven't answered Skurudo's question regarding CSF, you can say something like yes or no to help us better understand your problem. Also you can include your error logs that are being generated by apache within your domain's directory: /home/user/web/domain.tld/logs/domain.tld.error

Regards,

Re: [HELP]vestacp images are 403 forbidden

Posted: Sat Sep 24, 2016 5:34 pm
by droopy
CSF you mean the Online GUI interface?
Yes, it is installed BY DEFAULT using
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --force

So, it is inside the package by default. I just enter to web GUI and configurate there.

Something is wrong in LAST compilation as it shows
403 Forbidden
nginx

Re: [HELP]vestacp images are 403 forbidden

Posted: Mon Sep 26, 2016 11:24 am
by skurudo
droopy wrote:CSF you mean the Online GUI interface?
No, this CSF ->
viewtopic.php?f=20&t=10209
droopy wrote:Something is wrong in LAST compilation as it shows
403 Forbidden
nginx
Apache started?