Yet Another Apache webserver question (please bear with me)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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
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
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....
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.