The following is how I set up a new project. The steps are for linux, but the same logic was applicable on windows when I last checked.
First, edit /etc/hosts (IIRC it's somewhere under c:\windows with the same name) to add a new domain: 127.0.0.1 projectname.local Edit httpd.conf to add a new virtual host: <VirtualHost *:80> ServerName projectname.local DocumentRoot "/var/www/projectname/web" <Directory "/var/www/projectname/web"> AllowOverride all </Directory> </VirtualHost> Notice the lack of the /sf alias - I prefer to use plugin:publish-assets to create a symlink. After all this, restart apache and point your browser to http://projectname.local. It's a lot easier to remember than localhost and some obscure port for every project. --mrl On Sun, Jun 5, 2011 at 06:21, Parijat Kalia <kaliapari...@gmail.com> wrote: > Hi Harris, that did not work. I had the same configuration when I had a > single project and it would take me to the project title just fine. Any > further ideas? > > On Sat, Jun 4, 2011 at 8:10 PM, Haris Fauzi <haris.fa...@gmail.com> wrote: >> >> If you use alias directive: >> Alias /sf some_directory >> Then when you access anything under it you should put the subdirectory: >> http://localhost:8080/sf/frontend_dev.php >> Instead of going to root directory like you did. Otherwise you won't get >> to the files under some_directory. >> Regards, >> Haris >> >> On 5 June 2011 12:16, Parijat Kalia <kaliapari...@gmail.com> wrote: >>> >>> Hello! >>> Coming back onto the symfony mailing list after long. I now have a new >>> project that I am undertaking and running into a slight few niggles with >>> seeing it over my localhost. Let me explain: >>> 1. My original project exists here : c:\dev\sfproject. I introduce a new >>> project in C:\dev\sfproject2 >>> 2. In my httpd.conf file, I make the necessary changes, and here is what >>> it looks like: >>> ServerName Question_Machine >>> DocumentRoot "c:\dev\sfproject\web" >>> DirectoryIndex index.php >>> <Directory "c:\dev\sfproject\web"> >>> AllowOverride All >>> Allow from All >>> </Directory> >>> Alias /sf "C:\dev\sfproject\lib\vendor\symfony-1.2.9\data\web\sf" >>> <Directory "C:\dev\sfproject\lib\vendor\symfony-1.2.9\data\web\sf"> >>> AllowOverride All >>> Allow from All >>> </Directory> >>> </VirtualHost> >>> I browsed to localhost:8080/frontend_dev.php, but it redirects me back >>> to my original project. Not sure how this is happening, Any insights? >>> Anybody want to point what I am missing out or getting wrong? >>> >>> -- >>> If you want to report a vulnerability issue on symfony, please send it to >>> security at symfony-project.com >>> >>> You received this message because you are subscribed to the Google >>> Groups "symfony users" group. >>> To post to this group, send email to symfony-users@googlegroups.com >>> To unsubscribe from this group, send email to >>> symfony-users+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/symfony-users?hl=en >> >> -- >> If you want to report a vulnerability issue on symfony, please send it to >> security at symfony-project.com >> >> You received this message because you are subscribed to the Google >> Groups "symfony users" group. >> To post to this group, send email to symfony-users@googlegroups.com >> To unsubscribe from this group, send email to >> symfony-users+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/symfony-users?hl=en > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en