Forbidden

Forumas skirtas klausimams/pamokoms susijusioms su PHP, SQL (MySQL), web technologijomis, HTML, CSS, javascript, turinio valdymo sistemomis ir kita.
Post Reply
Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

Forbidden

Post by Kenzy »

Hello All, i have a problem to open a folder on website,
when i gonna check my folder on my website i get this Error,
Please Help me for fix this problem .

Forbidden

You don't have permission to access /services/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Attachments
Screenshot_1.png

User avatar
laimiukas3
Moderatorius
Posts: 4569
Joined: 2012 Aug 03 01:12
Skype: laimiukas3
Location: Vilnius
Contact:

Re: Forbidden

Post by laimiukas3 »

Kenzy wrote:Hello All, i have a problem to open a folder on website,
when i gonna check my folder on my website i get this Error,
Please Help me for fix this problem .

Forbidden

You don't have permission to access /services/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
try to set privileges 777
Image
Image
Image

Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

Re: Forbidden

Post by Kenzy »

laimiukas3 wrote:
Kenzy wrote:Hello All, i have a problem to open a folder on website,
when i gonna check my folder on my website i get this Error,
Please Help me for fix this problem .

Forbidden

You don't have permission to access /services/ on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
try to set privileges 777
i try doing it already, but still not work.

nullatonce
O taip. Jis jau surinko 50 žinučių!
Posts: 73
Joined: 2016 Sep 06 23:57
Skype: nullatonce

Re: Forbidden

Post by nullatonce »

LAMP ?
go to etc/apache2/sites-availabe/
Open sitename.net.conf

somewhere between add

Code: Select all

<VirtualHost *:80>< ... ><VirtualHost>
add

Code: Select all

    <Directory /var/www/>        Options Indexes FollowSymLinks MultiViews        AllowOverride All        Order allow,deny        allow from all    </Directory>
my template

Code: Select all

<VirtualHost *:80>     DocumentRoot /var/www/hi/public_html/    <Directory /var/www/>        Options Indexes FollowSymLinks MultiViews        AllowOverride All        Order allow,deny        allow from all    </Directory>< ... >
works for me

< ... > means text we don't care about.

Kenzy
Jau po truputį tampa savu
Posts: 106
Joined: 2017 Jan 22 20:41

Re: Forbidden

Post by Kenzy »

nullatonce wrote:LAMP ?
go to etc/apache2/sites-availabe/
Open sitename.net.conf

somewhere between add

Code: Select all

<VirtualHost *:80>< ... ><VirtualHost>
add

Code: Select all

    <Directory /var/www/>        Options Indexes FollowSymLinks MultiViews        AllowOverride All        Order allow,deny        allow from all    </Directory>
my template

Code: Select all

<VirtualHost *:80>     DocumentRoot /var/www/hi/public_html/    <Directory /var/www/>        Options Indexes FollowSymLinks MultiViews        AllowOverride All        Order allow,deny        allow from all    </Directory>< ... >
works for me

< ... > means text we don't care about.
mean creat new flode conf ? and name to floder ip VPS or name to my site ?
than past all this code like this ?

Code: Select all

<VirtualHost *:80>< ... ><VirtualHost>&nbsp;<Directory /var/www/>&nbsp; &nbsp;Options Indexes FollowSymLinks MultiViews&nbsp; &nbsp;AllowOverride All&nbsp; &nbsp;Order allow,deny&nbsp; &nbsp;allow from all</Directory>&nbsp;&nbsp;<VirtualHost *:80>&nbsp;&nbsp; &nbsp; DocumentRoot /var/www/hi/public_html/&nbsp; &nbsp; <Directory /var/www/>&nbsp; &nbsp; &nbsp; &nbsp; Options Indexes FollowSymLinks MultiViews&nbsp; &nbsp; &nbsp; &nbsp; AllowOverride All&nbsp; &nbsp; &nbsp; &nbsp; Order allow,deny&nbsp; &nbsp; &nbsp; &nbsp; allow from all&nbsp; &nbsp; </Directory>< ... >&nbsp;
-- 2017 Mar 03 16:56 --

Please Explain more :(

nullatonce
O taip. Jis jau surinko 50 žinučių!
Posts: 73
Joined: 2016 Sep 06 23:57
Skype: nullatonce

Re: Forbidden

Post by nullatonce »

can't understand a s*it from your message, but i think you asked for final code.
Not tested
<VirtualHost *:80>

DocumentRoot /var/www/hi/public_html/

Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
<VirtualHost>
i think you don't speak English (google translate not included) so friendly advice - start learning, because there is a lot of articles in that language, it's kinda global you know ...
Last edited by nullatonce on 2017 Mar 12 14:19, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests