logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Methods to reach another site

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
jwatson



Joined: 10 Nov 2017
Posts: 4
Location: USA

PostPosted: Fri 10 Nov '17 23:25    Post subject: Methods to reach another site Reply with quote

Hi folks,
Yes, so my subject is probably a bit vague. Let me try and explain a bit better. So I have to come up with 4 methods to make a site such as www.cita.com and you try to access the site it will reach Apache. The version of Apache I am using is 2.2.35

I believe Redirect is one, but I can't think off top of my head what the other three or other types are.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Tue 21 Nov '17 17:21    Post subject: Reply with quote

I don't understand. What are you trying to do?
Back to top
jwatson



Joined: 10 Nov 2017
Posts: 4
Location: USA

PostPosted: Tue 21 Nov '17 18:31    Post subject: Reply with quote

James Blond wrote:
I don't understand. What are you trying to do?


Ok, so what I am trying to do for a class is reach let's say "https://www.apache.org/" when typing in www.google.com.
Looking for completely different technical ways of reaching another site through one site via what I mentioned above by Google.com = Apache.org or IP.
1. Redirect works when typing in google.com it redirects to apache.org.
2. Changing DNS works by adding IP of apache site.
3. not sure of yet or can't think of one.
4. Same as #3.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Tue 21 Nov '17 19:09    Post subject: Reply with quote

Do ppl use your apache as a forward proxy? Otherwise you would have to deal with the router or the DNS server in your network.
Back to top
Xing



Joined: 26 Oct 2005
Posts: 37

PostPosted: Tue 21 Nov '17 19:18    Post subject: Reply with quote

Reverse Proxy:

ProxyPass "/foo" "http://foo.example.com/bar"
ProxyPassReverse "/foo" "http://foo.example.com/bar"


See https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
Back to top
jwatson



Joined: 10 Nov 2017
Posts: 4
Location: USA

PostPosted: Tue 21 Nov '17 21:57    Post subject: Reply with quote

James Blond wrote:
Do ppl use your apache as a forward proxy? Otherwise you would have to deal with the router or the DNS server in your network.


Not really it is for a college class Web Server Administration and we are working with Apache. Professor just wants different ways to reach a site. We do set up a virtual server for DNS and a website.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Wed 22 Nov '17 0:15    Post subject: Reply with quote

Okay so you use need to have the vhosts (name based) and point the DNS name to the IP of that computer on which apache is running.
Back to top
jwatson



Joined: 10 Nov 2017
Posts: 4
Location: USA

PostPosted: Tue 28 Nov '17 17:51    Post subject: Reply with quote

I will be trying vhosts again with it pointing to DNS of Apache.

Will try Reverse Proxy also which have been giving me a little problem.
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1