Is it possible to configure web server on Windows (Apache or IIS) without setting up virtual hosts so Zend Framework application could be accessed with link like http://example.com/myapp rather than http://example.com/myapp/public?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
use this .htaccess
and put this in application.ini
Put
.htaccess
file wit the following content to yourmyapp
directory:Create a .htaccess file and place it into root direectory with following content
And add below line to your application/configs/applicaton.ini file
There will be no error I will work fine.
As suggested in zend documentation here https://framework.zend.com/manual/2.4/en/user-guide/skeleton-application.html#using-the-built-in-php-cli-server, You can use the built-in CLI server using command
to run this just open command prompt and type above command like this
then hit enter and now you can open to your project like this http://localhost:8080/. Your application is running on 8080 port you can change it to something else like 8000 or 5050.
I hope it will help someone.