LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2004, 11:32 PM   #1
wonderland
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
Redirect


I have a RedHat Linux computer with webmin running on it.
If you access the address on port 80 it redirects to another computer, if you access it on 3128 it displays the daily and weekly folders for squid. e.g

192.168.1.2:80 -> redirects to another computer

192.168.1.2:3128 -> displays squid daily and weekly folders.

Does anyone know where these settings would be set in webmin? I did not set them up but I would like to change where port 80 redirects to.

I have checked both the Apache and Squid modules and can't find anything in here. I am thinking it may be the firewall module but would like some advice before I start changing things.

As I am a newbie I have been using webmin but if anyone could tell me the file itself I need to edit than that would also be useful. This could be something to do with iptables?

Thanks.
 
Old 05-24-2004, 03:42 AM   #2
bipul4b
LQ Newbie
 
Registered: May 2004
Location: India
Distribution: redhat
Posts: 21

Rep: Reputation: 15
Hi,

Please check the default webpage for the apache. It may possible that in default page HTTP header for redirection is used and that webpage redirect you on another machine.

or may be some setting from iptables, but i can't give advice because i don't know much more about iptables.


bye
 
Old 05-24-2004, 07:00 PM   #3
wonderland
LQ Newbie
 
Registered: May 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Ok, the default folder for apache is /var/www/html/squid
Within this is two folders, daily and weekly, but there is no .html files anywhere. Yet, if you visit this page it will show the directory of the folder. Eg.

Index Of /
Name Last modified Size Description
daily/
weekly/


How does it display this if there is no .html file in /var/www/html/squid?

Is it possible that the redirect is in here somewhere?
 
Old 05-24-2004, 11:50 PM   #4
bipul4b
LQ Newbie
 
Registered: May 2004
Location: India
Distribution: redhat
Posts: 21

Rep: Reputation: 15
Hi,

In your httpd.conf file of apache directory listing is on. so when no .html page in directory you are viewing then it will browse the files or dirctory contains in that directory. when you place index.html or index.htm in that folder then after you will not get directory listing.

so place index.htm or index.html in /var/www/html/squid directory after that you will not find directory listing.

If you want to redirect then you can place code in index.html file.


and for your other problem :
192.168.1.2:80 -> redirects to another computer

if no code in default page of apache then this may be done by firewall.

bye

 
  


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
redirect matt1982 Programming 2 12-20-2004 09:53 AM
PHP Redirect Elijah Programming 2 09-09-2004 09:56 PM
redirect into C++ without a file ? C++Boar Programming 1 04-24-2004 10:20 AM
redirect spank Linux - Newbie 2 03-01-2004 03:38 PM
Redirect sheek Programming 1 07-25-2003 12:53 PM


All times are GMT -5. The time now is 01:28 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