简体   繁体   中英

Permission issue with zf2 routing

In my main domain I have created a sub domain where I have uploaded my files of ZF2 but it it not allowing me to access the home page.

If I type <submdomainname>.<domainname>.com it is saying that:

Forbidden:

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

Additionally:

a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Sounds indeed like a server configuration issue. Try once to put a simle index.php in your folder and see if you can open it:

index.php :

<?php
echo("Hello world");

And add it to your public folder and try to browse to it:

http://www.example.com/public/index.php

If that doesn't work, then you know at least that it is not related to ZF2. After you tried this you can come back with more details on your problem.

You should add reading permission to the folder where you host your subdomain.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM