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) |
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. |
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 |
Quote:
Sorry If I'm a bit slow, but I'm a recent Linux convert and I have much to learn.... |
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 |
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? |
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 :) |
All times are GMT -5. The time now is 02:22 AM. |