LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-30-2002, 03:54 AM   #1
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Rep: Reputation: 30
Yet Another Apache webserver question (please bear with me)


Hi,
I have just a breif search here in the forums, and after looking through the first 3 pages I couldn't find What I'm looking for.

I have set up my Apache Web Server succesfully, but have a couple of minor problems with it

1.) Say your DocumentRoot is set to /somedirectory and you wish to place a link in index.html to navigate to /mp3 how do you succesfully have it link? You can assume both directories have 777 permissions (rwxrwxrwx).

2.) My web server starts up just fine, but If I make a link to any file or folder in my file system I can access it through a web browser just fine, but my neighbour can''t? Any ideas?

NOTE: I am behind a college network, and we have internal IPs. My freind can access the index.html page just fine, but none of the links work. Any ideas please?


I tried comance and it didn't help any.


Please help if u can


NOTE: Here is my httpd.conf (just in case you need to look at it)


Last edited by shassouneh; 05-30-2002 at 04:24 AM.
 
Old 05-30-2002, 05:24 AM   #2
fatgod
Member
 
Registered: Mar 2002
Location: Edinburgh, Scotland
Distribution: Suse 7.2, Gentoo 1.4, Solaris 9
Posts: 661

Rep: Reputation: 30
if you try to link the file system with file://whatever then the CLIENT browser will try to open that on the CLIENT machine.

Apache have documentation on linking the SERVER filesystem to the webpage. I've seen the docs that come with linked to the default webpage mention it.
 
Old 05-30-2002, 11:16 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
you can not browse files out of your main document root
+ you must have document root under virtual host
ie: main document root
/www
virutalhost ..
/www/myweb
your dir
/www/mp3

then you have to make alias for the mp3

Alias /mp3/ "/www/myweb/mp3/"
now you can browse
www.myweb.com/mp3/

but therei is no way to map any dir outside /www
 
Old 05-30-2002, 03:14 PM   #4
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
Quote:
you can not browse files out of your main document root
+ you must have document root under virtual host
ie: main document root
/www
virutalhost ..
/www/myweb
your dir
/www/mp3

then you have to make alias for the mp3

Alias /mp3/ "/www/myweb/mp3/"
now you can browse
www.myweb.com/mp3/

but therei is no way to map any dir outside /www
Huh? You completely lost me. Are you talking about the httpd.conf file or something else? I guess i' m just too much of a newbie to absorb all of this at once. Could you please explain with a little more detail? Thanx.

Sorry If I'm a bit slow, but I'm a recent Linux convert and I have much to learn....
 
Old 05-30-2002, 03:43 PM   #5
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
no don't worry.
you need to setup your apache configuration in /etc/httpd/conf/httpd.conf (that, you probably know)

However you set it up, you cannot show anything that is out of you main document root directive
ie if you put document root to be /www
than there is no way you could show any files or dirs outside /www dir (ie /etc /home, ...).

you can setup websites to have dirs sub your document root
ie /www/myweb. And If you have your website located in /www/myweb there is only one way to link files outside this directory
ie
/www/mp3 can only be shown within myweb website if you alias it


hope this helps a little more, if not try to explain some more your problem

regards
 
Old 05-30-2002, 03:49 PM   #6
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
I looked through your httpd.conf
you need virtual host for por 80 right now you only have ssl setup

I might have missunderstood your question
are you only trying to make link to anoter html in your website or a link to files which are not located within dir of your website?
 
Old 06-01-2002, 04:33 PM   #7
shassouneh
Member
 
Registered: Apr 2001
Location: Cheney, WA
Distribution: SuSE Linux Professional 9.2
Posts: 556

Original Poster
Rep: Reputation: 30
OK Guys, let me explain a little better.
Say I have my Documentroot poiting to /somedirectory

I want to be able to put a link in the index.html file to point at say some file on the file system, say /mp3/index.html or even /etc/somefile

and so on.

Like I explained earlier, I'm a complete newbie and dummy here, si please try to level down your explanations to my level.

Also I have tried to run comanche to set up a virtual host, but it complained with an error and offered to show me the stack call. I'm running Winbloze right now for a game, so I'll have to give u the details next time I reboot
 
  


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
Question about php 5 and apache webserver Hockeyfan SUSE / openSUSE 1 12-17-2005 06:51 AM
Question for multi-user webserver (Apache) on Fedora wycolorado Linux - Newbie 3 09-26-2004 12:20 AM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 05:30 AM
Apache webserver question Joe Soap Linux - Newbie 6 06-16-2004 06:34 PM
Dumb Newbie Question: Apache Webserver stoney79 Linux - Newbie 4 12-23-2003 10:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:33 AM.

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