Not every hosting company allows for 'remapping' stuff outside of the
default configuration.  The default Plesk configuration (which many hosts
use) disallows a user putting any files output of the 'httpdocs' folder.
This was true for plesk as of the 8.6 version - I've not tried the 9
version.

Mantasgl, you may want to submit a support ticket to your hosting company to
ask them to do this for you manually.  If they won't do this, there may be
some stuff you can do with setting the 'baseUrl' on the front controller, or
possibly some funky mod_rewrite stuff, but I'm not sure there's a clean way
around your situation.

Good luck.

On Tue, Jun 16, 2009 at 5:34 AM, Deepak <[email protected]> wrote:

> On Tue, Jun 16, 2009 at 4:43 PM, Mantasgl<[email protected]> wrote:
> >
> > 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?
> > --
> > View this message in context:
> http://www.nabble.com/Putting-Zend-Framework-application-online-tp24050069p24050069.html
> > Sent from the Zend Framework mailing list archive at Nabble.com.
> >
> >
>
> where are you hosting your application? your local server or hosting
> company?
>
> In case of hosting company, they will give you the directory where
> your html files go i.e. your public folder. You just have to map that
> with your public folder.
>
> For example:
>
> Hosting company's public folder is public_html, your uploaded file
> should look like this
>
> / (root)
> application
> library
> public_html = your public folder
>
> Disregard your myapp folder. It is for your project purpose only.
>
> Hope this helps.
>



-- 
Michael Kimsal
http://jsmag.com - for javascript developers
http://groovymag.com - for groovy developers
919.827.4724

Reply via email to