LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2009, 06:54 PM   #1
garry
LQ Newbie
 
Registered: Feb 2009
Location: Balkans
Distribution: Slackware
Posts: 4

Rep: Reputation: 0
http server and wget from lan


hello

i was wondering how one can get file from within lan from http server runing on slackware using wget? where does file must be so it can be wgeted
 
Old 05-30-2009, 08:57 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
You would need to put the file somewhere in apache webroot, maybe in /var/www/ or somewhere like that. Then if you go to the webserver using a browser, you can find the file. right click, and 'copy link location'. Then paste this after the wget so it looks like this:

Code:
wget http://local.ip.server/file
to paste in terminal, use ctrl+shift+v.
 
Old 05-31-2009, 12:54 AM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
The default location is /srv/httpd/htdocs (or /var/www/htdocs/)

Look in your /etc/httpd/httpd.conf for the DocumentRoot

Code:
DocumentRoot "/srv/httpd/htdocs"
 
Old 05-31-2009, 07:07 AM   #4
garry
LQ Newbie
 
Registered: Feb 2009
Location: Balkans
Distribution: Slackware
Posts: 4

Original Poster
Rep: Reputation: 0
thanks, that is helpfull, but last night i ended up with using scp after trying to set up ftp server. for some reason there were error in server greeting so after failing to fix that searched for ssh file transfer wich led me to scp.

oh btw for some newb like me (from wikiey):

Copying file to host and Copying file from host:

Code:
scp SourceFile user@host:directory/TargetFile

scp user@host:directory/SourceFile TargetFile

Last edited by garry; 05-31-2009 at 07:14 AM.
 
  


Reply



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
got an http error using wget elthox Linux - Newbie 2 02-23-2009 02:00 AM
HTTP Server Response Problems ... Web vs. LAN matrixcubed Linux - Networking 1 05-27-2007 12:39 PM
Wget & MnoGoSearch http request problem (size) havik Linux - Software 0 09-28-2005 07:21 AM
LAN/WAN IP address and http to virtual server behind DSL modem E-Rick Linux - Networking 3 10-19-2004 10:01 AM
Any somebody tell me HOW can I get the file list from ftp(http) server by wget? wuzhong Linux - Networking 2 09-07-2004 08:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:05 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
Open Source Consulting | Domain Registration