Not able to access web application through LAN

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Not able to access web application through LAN

Postby shiv » 20. July 2009 05:50

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..
shiv
 
Posts: 6
Joined: 19. June 2009 07:51

Re: Not able to access web application through LAN

Postby Wiedmann » 20. July 2009 06:50

ive customised root forlder of my web application,

How have you done this?
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Not able to access web application through LAN

Postby shiv » 20. July 2009 07:29

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>
shiv
 
Posts: 6
Joined: 19. June 2009 07:51

Re: Not able to access web application through LAN

Postby Wiedmann » 20. July 2009 07:32

Well, if this is your only "VHost", you don't need a vhost. Just change the DocumentRoot in "httpd.conf".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Not able to access web application through LAN

Postby shiv » 20. July 2009 07:44

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
shiv
 
Posts: 6
Joined: 19. June 2009 07:51

Re: Not able to access web application through LAN

Postby Wiedmann » 20. July 2009 08:37

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
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Not able to access web application through LAN

Postby shiv » 20. July 2009 09:15

ok thanks wiedmann :)
shiv
 
Posts: 6
Joined: 19. June 2009 07:51


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests