بروز خطا
   [message]
اشتراک در سوال
رای ها
[dataList]
پرسش و پاسخ

پیغام Forbidden برای mysite alias

مدیریت گفتگو
rad 11 سال پیش
آخرین تغییر: 11 سال پیش

localhost رو که میزنم همون پنجره php میاد ولی وقتی mysite رو میزنم

Forbidden

You don't have permission to access /mysite/ on this server.

Apache/2.4.9 (Win64) PHP/5.5.12 Server at localhost Port 80


یه صفحه ساده هم index.php ساده میخوام بیارم نمیادولی این صفحه میاد

 

نظرات

rad 11 سال پیش
Ok ممنون

پاسخ‌ها 1

rad 11 سال پیش

I found a solution which worked for me. In httpd.conf i changed:

<Directory />
    AllowOverride none
    Require all denied
</Directory>

to

<Directory />
    AllowOverride none
    Require all granted
</Directory>

Which solved the issue and allowed me to access my custom aliases.


I believe this is the best solution:
Open index.php in www folder and set
change line 30:$suppress_localhost = true;
to $suppress_localhost = false;
This will ensure the project is prefixed with your local host IP/name

 

نظرات

rad 11 سال پیش
آفرین به خودم یواش یواش دارم راه میافتم

پاسخگویی و مشاهده پاسخ های این سوال تنها برای اعضای ویژه سایت امکان پذیر است .
چنانچه تمایل دارید به همه بخش ها دسترسی داشته باشید میتوانید از این بخش لایسنس این آموزش را خریداری نمایید .