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 03-22-2013, 02:11 AM   #1
puchchi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Rep: Reputation: Disabled
Unhappy how-to-redirect-webiste-from-apache-server-to-proxy-server


i host a website (http://www.abcd.com/) on my apache2 server (my com IP 192.168.1.1) in an INTRANET.each browser on my lan are configured to connect to my computer as proxy server(192.168.1.1:80)...

In my organistion we have already a proxy server,through we can access internet (192.168.100.100:3128)...
Now i want that every user connect me as a proxy server and they can access my website(www.abcd.com).
So I want my apache server forward other all connection to proxy server(192.168.100.100:3128) except for www.abcd.com....
what should i do????n in which .conf file????help me pls
weather i can use NoProxy directive or ProxyPass orForwardProxy or what.....i got pissed off from this manual of apache server....pls help
 
Old 03-22-2013, 04:21 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Why would your web server forward all requests to a proxy?? Why is that server receiving requests for other sites in the first place?
 
Old 03-22-2013, 05:00 AM   #3
puchchi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Why would your web server forward all requests to a proxy?? Why is that server receiving requests for other sites in the first place?
bcos in our lan no one can browse internet without connecting that proxy server.......
 
Old 03-22-2013, 05:03 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
well connect to the proxy server correctly then. This apache server appears have nothing to do with anything.
 
Old 03-22-2013, 08:54 AM   #5
puchchi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
well connect to the proxy server correctly then. This apache server appears have nothing to do with anything.
sir ,but this is not solution my problem....i m working on a project ,thats why we need to do this.....if u know solution of this problem then pls tell me,otherwise its ok...
btw this apache server host a website (www.abcd.com),,n i want to host this website only for lan ,not for whole internet,thats why i host it personally on my apache server,not on any hosting website.........

Last edited by puchchi; 03-22-2013 at 08:57 AM.
 
Old 03-22-2013, 09:26 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
I just don't undersatnd the question though. You want to host an intranet site on Apache. Cool. Good for you. Do that. How your users reach the internet... well that's irrelevant to Apache. Apache is NOT a forward proxy. it doesn't, and is NOT meant to do what you're asking it to do. If you need a local proxy, then install one, like squid.
 
Old 03-22-2013, 12:00 PM   #7
puchchi
LQ Newbie
 
Registered: Mar 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I just don't undersatnd the question though. You want to host an intranet site on Apache. Cool. Good for you. Do that. How your users reach the internet... well that's irrelevant to Apache. Apache is NOT a forward proxy. it doesn't, and is NOT meant to do what you're asking it to do. If you need a local proxy, then install one, like squid.
i think you have no idea about apache server,in apache there is a module MOD_PROXY,in which you can configure such type of problem,but i dont have enough idea about MOD_PROXY module,even i google it but i got nothing valuable......
 
Old 03-22-2013, 03:13 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Why on earth are you trying to deliberately use inappropriate software for a problem that doesn't even appear to exist??
 
  


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
proxy server iptables redirect to connect to outside card invader44 Linux - Newbie 1 10-03-2012 06:28 PM
Redirect one url to other squid proxy server. bhimarora Linux - Newbie 1 07-05-2010 05:46 AM
[SOLVED] webiste outside the server's folder martvefun Linux - Server 4 05-22-2010 05:51 PM
How to redirect Squid Traffic to Another Proxy Server matrix_aash Linux - Networking 11 02-16-2010 12:52 PM
redirect all http requests to a different squid proxy server r2d2#jedi Linux - Networking 1 05-27-2009 01:31 AM


All times are GMT -5. The time now is 04: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration