unable to access symfony app from diff pc[URJENT]

Installation and environment issues, mainly on 1.x but there's some 2.x here too.

Moderators: dwhittle, Ian

unable to access symfony app from diff pc[URJENT]

Postby chinmoy » Wed Nov 10, 2010 4:03 am

Hi Symfony Experts
I am a newbie in symfony.
i run symfony project successully in local pc. but i cant access it from remote pc(mac os x server).
i configured my app as virtual host.

my environment.
apahce 2.2 is running in windows xp.

----------------------------------------------
# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8081

# This is the configuration for your project
Listen 127.0.0.1:8081

<VirtualHost 127.0.0.1:8081>
DocumentRoot "f:\dev\ecsite\web"
DirectoryIndex index.php
<Directory "f:\dev\ecsite\web">
AllowOverride All
Allow from All
</Directory>

Alias /sf f:\dev\ecsite\lib\vendor\symfony\data\web\sf
<Directory "f:\dev\ecsite\lib\vendor\symfony\data\web\sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
--------------------------
from my local pc [http://localhost:8081/ec_dev.php/channel/list] it works file.
but from diff pc within same network it does not work.
[http://ip:8081/ec_dev.php/channel/list]

please kindly help me.

thanks.
chinmoy
Junior Member
 
Posts: 11
Joined: Tue Nov 09, 2010 2:56 pm

Re: unable to access symfony app from diff pc

Postby halfer » Wed Nov 10, 2010 2:49 pm

No, that definately won't work. If you listen to localhost (127.0.0.1) then it will only work from the same machine.

Try listening like this instead:

Code: Select all
Listen 8081

<VirtualHost *:8081>

Or, if you have a static IP on your network (not DHCP), swap the 127.0.0.1 for the network address of the computer (e.g. 192.168.0.5).
halfer
Faithful Member
 
Posts: 10148
Joined: Mon Jan 30, 2006 1:16 pm
Location: West Midlands, UK

Re: unable to access symfony app from diff pc[URJENT]

Postby chinmoy » Thu Nov 11, 2010 9:00 am

Thank you very much.. i tried with static ip it worked!
chinmoy
Junior Member
 
Posts: 11
Joined: Tue Nov 09, 2010 2:56 pm


Return to Installation and setup

Who is online

Users browsing this forum: No registered users and 0 guests