On Tue, Jun 16, 2009 at 4:43 PM, Mantasgl<manta...@gmail.com> 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.

Reply via email to