LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2010, 05:49 AM   #1
vishnukumar
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Rep: Reputation: 0
Viewing HTML file in network


Hi,

I am new to Linux. I have indexnew.html file in /var/www/html. I have to view this file in the browser within the network and without using Apache server. Because, my Apache server gets the request to my application. I used http://localhost/indexnew.html to open the file, but it gets to my application.

Thank you
 
Old 02-19-2010, 06:17 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Ofcourse you can open..give the file path in browser this way. If you have launched firefox with root previliges

Code:
file:///var/www/html/indexnew.html
OR

You can also try this way in you terminal
Code:
# firefox /var/www/html/indexnew.html &

Last edited by vinaytp; 02-19-2010 at 06:18 AM.
 
Old 02-19-2010, 07:32 AM   #3
vishnukumar
LQ Newbie
 
Registered: Jul 2009
Posts: 21

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by vinaytp View Post
Ofcourse you can open..give the file path in browser this way. If you have launched firefox with root previliges

Code:
file:///var/www/html/indexnew.html
OR

You can also try this way in you terminal
Code:
# firefox /var/www/html/indexnew.html &
Thanks for your reply.

file:///var/www/html/indexnew.html

The above is possible to open the file within local. How to do, if i need to open within LAN?
 
Old 02-19-2010, 07:53 AM   #4
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 56
Quote:
Originally Posted by vishnukumar View Post
Because, my Apache server gets the request to my application. I used http://localhost/indexnew.html to open the file, but it gets to my application.
What application?
 
Old 02-19-2010, 07:58 AM   #5
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by vishnukumar View Post
How to do, if i need to open within LAN?
Please specify which distro you are using ? It will be helpful if you update your profile with the distros you are using.

Could you please elaborate on why can't you use apache to view the file ?


yes there is a way through ftp. Try the following steps

1.
Code:
# cp indexnew.html /var/ftp/pub/
2. I assume vsftpd is your ftp daemon
Code:
# /sbin/service vsftpd start
3.
In your browser try
Code:
ftp://ip_addr_of_remote_machine/pub/indexnew.html

Last edited by vinaytp; 02-19-2010 at 08:05 AM.
 
Old 02-19-2010, 08:02 AM   #6
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware, Salix
Posts: 237

Rep: Reputation: 59
Quote:
Originally Posted by vishnukumar View Post
Thanks for your reply.

file:///var/www/html/indexnew.html

The above is possible to open the file within local. How to do, if i need to open within LAN?
There are many ways to do that. Basically, you will either have to log in to the host with ssh, or access a shared directory on the host with nfs or samba.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Viewing HTML Documents In KWord With Original Formatting Mark7 Linux - Software 1 06-18-2007 03:46 AM
Viewing html pages on localhost threelions66 Linux - Newbie 3 08-05-2006 07:22 PM
kontact kmail - html messages viewing problem rahilrai Linux - Newbie 1 01-02-2006 03:06 PM
Viewing HTML Source in OpenOffice pre 2.0 slacker9876 SUSE / openSUSE 1 07-01-2005 02:40 PM
kmail: viewing HTML messages azebuski Linux - Software 1 01-07-2005 11:57 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration