install zend framework without apache virtual hosts

前端 未结 2 1044
南方客
南方客 2021-01-14 10:40

I have my website in /var/www/invent. I have zend-framework in /var/www/invent/library.

Basically what i want is when i access http://localhost/invent to work as if

相关标签:
2条回答
  • 2021-01-14 10:50

    remove vhost property and go directly to http://localhost/yourproject/public folder. You will need to stay with htaccess mod_rewrite , don't delete mod_rewrite properties in htaccess

    0 讨论(0)
  • 2021-01-14 11:08

    Your application document root is wherever you place your index.php file, the locations of the Zend Framework library and your application code are irrelevant.

    Provided you've used the BaseUrl helper in your views for static assets (JavaScript, CSS, images) and the Url helper for action links, your application should be very portable in regards to relative path from the web server document root.

    Let me know if I'm way off track here. Your question could do with some more details.

    0 讨论(0)
提交回复
热议问题