Page 1 of 1

Not able to access web application through LAN

PostPosted: 20. July 2009 05:50
by shiv
hi
i'm using rhel5 & lampp1.7.2
ive customised root forlder of my web application, ie. the path is
$/home/jobs
& i've made necessary changes in httpd.conf file..

when i type
http://localhost
on the server system
the application is working fine.

through network when i try to access
http://10.136.7.28
it shaows xampp home page

pls help me..

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 06:50
by Wiedmann
ive customised root forlder of my web application,

How have you done this?

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 07:29
by shiv
Wiedmann wrote:
ive customised root forlder of my web application,

How have you done this?


hi Wiedmann, thanks for reply..

added the following at the end of httpd.conf file

Listen 127.0.0.1:8080

<VirtualHost 127.0.0.1:80> ServerName jobs.localhost

DocumentRoot "/home/sfp/jobs/web"
DirectoryIndex index.php
<Directory "/home/sfp/jobs/web">
AllowOverride All
Allow from All
</Directory>

Alias /sf /home/sfp/jobs/lib/vendor/symfony/data/web/sf
<Directory "/home/sfp/jobs/lib/vendor/symfony/data/web/sf">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 07:32
by Wiedmann
Well, if this is your only "VHost", you don't need a vhost. Just change the DocumentRoot in "httpd.conf".

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 07:44
by shiv
Wiedmann wrote:Well, if this is your only "VHost", you don't need a vhost. Just change the DocumentRoot in "httpd.conf".


actually, im uing some applications in /opt/lampp/htdocs

& one application in /home/sfp/jobs.. for this i've added vhost to httpd.conf

is this the correct way :?:

thanks

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 08:37
by Wiedmann
is this the correct way

Well, all roads lead to Rome ;-)

- you can add a VHost for this app
- move this app to htdocs
- add an Alias for this App.


Especially with VHosts, you must:
- how want you access your files in htdocs
- how want you access this app

Re: Not able to access web application through LAN

PostPosted: 20. July 2009 09:15
by shiv
ok thanks wiedmann :)