-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In any case, you can just put a .htaccess file in your root directory,
rewriting all requests into the public directory. See:

http://site.svn.dasprids.de/trunk/.htaccess
...................................
:  ___   _   ___ ___ ___ _ ___    :
: |   \ /_\ / __| _ \ _ (_)   \   :
: | |) / _ \\__ \  _/   / | |) |  :
: |___/_/:\_\___/_| |_|_\_|___/   :
:........:........................:
: Web    : http://www.dasprids.de :
: E-mail : m...@dasprids.de       :
: Jabber : jab...@dasprids.de     :
: ICQ    : 105677955              :
:........:........................:


Mantasgl schrieb:
> Hi,
> 
> I have my Zend Framework application fully working on my PC (localhost). My
> application directory structure is default:
> /myapp
>      /application
>      /library
>      /public
> 
> I have configured my apache virtual hosts, so that it point to public
> directory:
> <VirtualHost ∗:80>
> ServerName myapp
> DocumentRoot "D:/wamp/www/myapp/public/"
> </VirtualHost>
> 
> I also added the new virtual domain to my hosts file in Windows XP
> 127.0.0.1 myapp
> 
> At this point on my localhost everything works fine. In browser i type
> "myapp" and my application starts.
> 
> The problem is, when I put my application online on web server, I can't
> change virtual hosts there, so when I type my domain in browser I also have
> to enter to public directory. So my address looks like this:
> "mydomain/public" 
> and in the end I need to change my paths, also form action's paths and so
> on.
> I haven't contacted my web server administrator yet. What I was trying to do
> is that I cut everything out of my public dir and paste it in my root dir
> (myapp) and everything now working fine. But at this point I have to change
> index.php configuration and the default zend framework application structure
> is broken.
> So what can you advice me? Is my solution good? Should I try asking my web
> server administrator to change virtual hosts? 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko3iwMACgkQ0HfT5Ws789BSjwCgjE6X4CirArcM6kS/KQl3sYqi
8EQAnieavgF5FNeZkYKGR17ZR5TlAx3r
=Ogrf
-----END PGP SIGNATURE-----

Reply via email to