Apache :: How To Use Virtual Host IP Address In Request To Remote Address

Feb 6, 2015

My customer has an external facing Apache server that is acting as a reverse proxy to two internal applications. They have:

- external addresses for each app which resolve to different ip addresses, so app1.their_domain.com and app2.their_domain.com resolve to 77.3.170.10 and 77.3.170.11 respectively.
- the Apache server has two network interfaces with ip addresses 192.168.10.10 and 192.168.10.11
- the external ip addresses resolve to the above internal addresses
- the firewall between the Apache server and the internal app servers is configured to allow traffic from 192.168.10.10 to reach app_server1, and traffic from 192.168.10.11 to reach app_server2, both using port 7777.

I have configured a virtual host in httpd.conf for each ip, i.e.

Code:

<VirtualHost 192.168.10.10:80>
...
ProxyPass /app http://app_server1:7777/app
ProxyPassReverse /app http://app_server1:7777/app
RewriteRule ^/$ /app/app1 [R,L]
...
<VirtualHost>

and

Code:

<VirtualHost 192.168.10.11:80>
...
ProxyPass /app http://app_server2:7777/app
ProxyPassReverse /app http://app_server2:7777/app
RewriteRule ^/$ /app/app2 [R,L]
...
<VirtualHost>

This works fine in that the external address are being routed to the correct application, however the firewall is blocking requests to the second app as it appears the requests are coming from the Apache servers 'primary' ip address 192.168.10.10 instead of 192.168.10.11.

Is it possible to send requests using the ip address from the relevant VirtualHost?

Windows server 2008
Apache 2.2

View 1 Replies


ADVERTISEMENT

Unable To Handle Kernel Paging Request At Virtual Address

Jan 16, 2007

At 1:25am last night I received this message and our server locked up:

Jan 16 01:25:02 host kernel: Unable to handle kernel paging request at virtual address 00361fa8
Jan 16 01:25:02 host kernel: printing eip:
Jan 16 01:25:02 host kernel: c0177f86
Jan 16 01:25:02 host kernel: *pde = 3cc79067
Jan 16 01:25:02 host kernel: Oops: 0000 [#1]
Jan 16 01:25:02 host kernel: Modules linked in: md5 ipv6 parport_pc lp parport ipt_TOS ip_conntrack_ftp ip_conntrack_irc ipt_REJECT ipt_limit ipt_multiport ipt_state autofs4 sunrpc ipt_LOG iptable_filter iptable_mangle iptable_nat ip_conntrack ip_tables dm_mirror dm_mod button battery ac ohci_hcd ehci_hcd r8169 8139too mii floppy ext3 jbd
Jan 16 01:25:02 host kernel: CPU: 0
Jan 16 01:25:02 host kernel: EIP: 0060:[<c0177f86>] Not tainted VLI
Jan 16 01:25:02 host kernel: EFLAGS: 00010202 (2.6.9-22.EL)
Jan 16 01:25:02 host kernel: EIP is at __link_path_walk+0xa77/0xd98
Jan 16 01:25:02 host kernel: eax: 00361f80 ebx: 00000000 ecx: f3138e60 edx: f3138e5c
Jan 16 01:25:02 host kernel: esi: f7b4ea0c edi: 01b07b37 ebp: f3138f0c esp: f3138e3c
Jan 16 01:25:03 host crond(pam_unix)[27321]: session closed for user root
Jan 16 01:25:03 host kernel: ds: 007b es: 007b ss: 0068
Jan 16 01:25:03 host kernel: Process dataskq (pid: 27325, threadinfo=f3138000 task=f403d220)
Jan 16 01:25:03 host kernel: Stack: f3138f58 00000000 f3138e90 c018109b 00000001 00000000 f4e0f00a c18c8c80
Jan 16 01:25:03 host kernel: f22e0ef8 01b07b37 00000004 f4e0f006 f3138f0c f3138f0c f4e0f000 f4e0f000
Jan 16 01:25:03 host kernel: 00000000 c01782e8 f7c609b8 c18c8e00 00000000 00000000 00000000 00000001
Jan 16 01:25:03 host kernel: Call Trace:
Jan 16 01:25:03 host kernel: [<c018109b>] dput+0x33/0x423
Jan 16 01:25:03 host kernel: [<c01782e8>] link_path_walk+0x41/0xb9
Jan 16 01:25:03 host kernel: [<c01785e0>] path_lookup+0x104/0x135
Jan 16 01:25:03 host kernel: [<c0178725>] __user_walk+0x21/0x51
Jan 16 01:25:03 host kernel: [<c01729bc>] vfs_stat+0x14/0x3a
Jan 16 01:25:03 host kernel: [<c0172fc5>] sys_stat64+0xf/0x23
Jan 16 01:25:03 host kernel: [<c030f91f>] syscall_call+0x7/0xb
Jan 16 01:25:03 host kernel: Code: e8 46 f4 ff ff 8b 44 24 20 8b 70 20 31 c0 85 f6 0f 95 c0 85 44 24 10 0f 84 6f 02 00 00 8b 86 cc 00 00 00 85 c0 0f 84 61 02 00 00 <83> 78 28 00 0f 84 57 02 00 00 8b 44 24 1c 85 c0 74 03 ff 40 28
Jan 16 01:25:03 host kernel: <0>Fatal exception: panic in 5 seconds
Jan 16 01:25:06 host crond(pam_unix)[27320]: session closed for user root

-----------------------------------------------
Yesterday morning I received a similare message aswell as the server locking up:
------------------------------------------------

Jan 15 06:40:47 host kernel: Unable to handle kernel paging request at virtual address 00fe0dc8
Jan 15 06:40:47 host kernel: printing eip:
Jan 15 06:40:47 host kernel: c03074f2
Jan 15 06:40:47 host kernel: *pde = 3b25c067
Jan 15 06:40:47 host kernel: Oops: 0002 [#1]
Jan 15 06:40:47 host kernel: Modules linked in: md5 ipv6 parport_pc lp parport ipt_TOS ip_conntrack_ftp ip_conntrack_irc ipt_REJECT ipt_limit ipt_multiport ipt_state autofs4 sunrpc ipt_LOG iptable_filter iptable_mangle iptable_nat ip_conntrack ip_tables dm_mirror dm_mod button battery ac ohci_hcd ehci_hcd r8169 8139too mii floppy ext3 jbd
Jan 15 06:40:47 host kernel: CPU: 0
Jan 15 06:40:47 host kernel: EIP: 0060:[<c03074f2>] Not tainted VLI
Jan 15 06:40:47 host kernel: EFLAGS: 00010286 (2.6.9-22.EL)
Jan 15 06:40:47 host kernel: EIP is at __unix_remove_socket+0x14/0x4e
Jan 15 06:40:47 host kernel: eax: f7abb948 ebx: f5fe0280 ecx: f5fe0288 edx: 00fe0dc8
Jan 15 06:40:47 host kernel: esi: f5fe0280 edi: f76fccbc ebp: 00000000 esp: f6974f68
Jan 15 06:40:47 host kernel: ds: 007b es: 007b ss: 0068
Jan 15 06:40:47 host kernel: Process estate.cgi (pid: 10298, threadinfo=f6974000 task=f6870600)
Jan 15 06:40:47 host kernel: Stack: 00000000 c030775f f5fe0280 f5fe0280 00000000 f76fcc80 f76fccbc f7a7a780
Jan 15 06:40:47 host kernel: c02aae3a f76fccbc c18c8600 c02ab950 f65b4680 c0168e5a f65b4680 00000000
Jan 15 06:40:47 host kernel: f792ac80 f6974000 c0167763 00000003 09d6cec8 00000000 c030f91f 00000003
Jan 15 06:40:47 host kernel: Call Trace:
Jan 15 06:40:47 host kernel: [<c030775f>] unix_release_sock+0xf/0x19f
Jan 15 06:40:47 host kernel: [<c02aae3a>] sock_release+0x11/0x63
Jan 15 06:40:47 host kernel: [<c02ab950>] sock_close+0x26/0x2a
Jan 15 06:40:47 host kernel: [<c0168e5a>] __fput+0x55/0xee
Jan 15 06:40:47 host kernel: [<c0167763>] filp_close+0x59/0x5f
Jan 15 06:40:47 host kernel: [<c030f91f>] syscall_call+0x7/0xb
Jan 15 06:40:47 host kernel: Code: 89 c2 c1 ea 08 31 c2 81 e2 ff 00 00 00 89 16 89 fa 5b 89 d0 5e 5f c3 53 89 c3 83 78 0c 00 74 43 8d 48 08 8b 40 08 8b 51 04 85 c0 <89> 02 74 03 89 50 04 c7 41 04 00 00 00 00 8b 43 18 48 75 21 68
Jan 15 06:40:47 host kernel: <0>Fatal exception: panic in 5 seconds

View 0 Replies View Related

Use Multi-IP Address To Sent Out Request At The Same Time

Aug 20, 2008

Is this possible to use Multi-IP to sent out request at the same time?

Scenario
-8 IP is assigned to my box
-I have 8 domains

Now, I would like to connect to a serverX, However, serverX only allow two concurrent connection per IP at the same time.

Is this possible for me to use 8 IPs with 8 Domains to sent out request and having (2X8) = 16 concurrent connection to serverX

View 5 Replies View Related

MAC Address Of Remote Device

Apr 5, 2007

Is there a program to find out the MAC address of a particular IP address?
Have been having some problems lately with some of my IPs and clients using unauthorised IP addresses which the ISP is hopping on me about it.

I have tried things like

In LINUX
nmblookup
nslookup

In DOS
nbstat

but can't get the MAC of the particular IP I am looking for...

View 2 Replies View Related

Virtuozzo Firewall :: Is It Possible To Enter Two Different Ip Address In Source Address?

Aug 4, 2008

I am using virtuozzo firewall to secure access.

I enter 58.27.175.211/255.255.255.0 for Source Address and Netmask for port 22.

But still I can connect using 58.181.103.217 or 58.27.151.120.

Second is it possible to enter two different ip address in source address?

View 4 Replies View Related

Unable To Handle Kernel NULL Pointer Dereference At Virtual Address

Jun 16, 2007

My server has been kernel panicking on and off irreguarly every 2 days or so since I upgraded to cPanel 11, I'm not entirely sure whether this was the cause however I've isolated the fact it is a kernel issue. I am running CentOS 4.5 and was running Kernel "2.6.9-42.0.8.ELsmp" however switched to the kernel I was running before (2.6.9-42.0.3.ELsmp) and the same issue is still cropping up.

I thought that it may be a memory addressing issue or the like, however from looking up the issue, several C programming forums seem to suggest dodgy applications, the memory usage on the server does always seem fairly low and loads are generally healthy so this would seem to be supported.

The logs before the server kernel panics are as so:

Quote:

Jun 16 17:40:01 buzz kernel: Unable to handle kernel NULL pointer dereference at virtual address 00000010
Jun 16 17:40:01 buzz kernel: printing eip:
Jun 16 17:40:01 buzz kernel: c016563c
Jun 16 17:40:01 buzz kernel: *pde = 177b1001
Jun 16 17:40:01 buzz kernel: Oops: 0000 [#1]
Jun 16 17:40:01 buzz kernel: SMP
Jun 16 17:40:01 buzz kernel: Modules linked in: iptable_filter ip_tables md5 ipv6 autofs4 dm_mirror dm_mod button battery ac joydev ohci_hcd ehci_hcd snd_inte
l8x0 snd_ac97_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device snd soundcore 8139too mii ext3 jbd
Jun 16 17:40:01 buzz kernel: CPU: 0
Jun 16 17:40:01 buzz kernel: EIP: 0060:[<c016563c>] Not tainted VLI
Jun 16 17:40:01 buzz kernel: EFLAGS: 00010246 (2.6.9-42.0.3.ELsmp)
Jun 16 17:40:01 buzz kernel: EIP is at pipe_readv+0x28a/0x29e
Jun 16 17:40:01 buzz kernel: eax: 00000000 ebx: deaeb2e0 ecx: 00020002 edx: 0000001d
Jun 16 17:40:01 buzz kernel: esi: c9274f80 edi: bff0ed50 ebp: 0000006d esp: c9274f44
Jun 16 17:40:02 buzz kernel: ds: 007b es: 007b ss: 0068
Jun 16 17:40:02 buzz kernel: Process sim (pid: 31509, threadinfo=c9274000 task=dda210b0)
Jun 16 17:40:02 buzz kernel: Stack: 00000000 00000000 cd7ee06d 00000013 0000006d 00000001 deaeb2e0 c9274f80
Jun 16 17:40:02 buzz kernel: c30f2a80 c032dba0 c30f2a80 00000080 c9274fac c016566c c9274fac bff0edbd
Jun 16 17:40:02 buzz kernel: 00000013 c015af11 c9274fac bff0ed50 c30f2a80 fffffff7 bff0ed50 c9274000
Jun 16 17:40:02 buzz kernel: Call Trace:
Jun 16 17:40:02 buzz kernel: [<c016566c>] pipe_read+0x1c/0x20
Jun 16 17:40:02 buzz kernel: [<c015af11>] vfs_read+0xb6/0xe2
Jun 16 17:40:02 buzz kernel: [<c015b124>] sys_read+0x3c/0x62
Jun 16 17:40:02 buzz kernel: [<c02d47cb>] syscall_call+0x7/0xb
Jun 16 17:40:02 buzz kernel: Code: 20 01 00 00 b9 02 00 02 00 ba 1d 00 00 00 83 c0 34 e8 a3 53 00 00 58 83 7c 24 10 00 7e 15 8b 44 24 20 f6 40 1a 04 75 0b 8b
40 08 <8b> 40 10 e8 17 c5 00 00 8b 44 24 10 83 c4 24 5b 5e 5f 5d c3 83
Jun 16 17:40:02 buzz kernel: <0>Fatal exception: panic in 5 seconds

View 6 Replies View Related

How Do I Setup A New Ip Address As My Server's Main Ip Address

Jul 26, 2007

I just bought a new ip address and want to setup this new ip as my server's main ip, making the 'existing main ip' as the secondary ip.

Which means, this new ip will be the server's default ip address for all services, including when connecting to other server.

I'm using CentOs 4.5 and swsoft's panels: HSPcomplete & Virtuozzo Power Panel, and Webmin.

View 1 Replies View Related

Host Multiple Ip Address Websites

Aug 13, 2008

I currently host my own website with windows server 2003, it is a long ip address. I use a DNS redirector service to make it a real domain name. I was wondering if I can host more than one website?

View 2 Replies View Related

URL Redirection Without Changing The Address In The Address Bar

Nov 8, 2007

I want to redirect a website to a particular URL so that the address bar shows the same URL and not the destination URL. I know it is possible via URL masking, however, I want it in such a way that whenever somebody clicks on any link in the website, the address bar should still show the original URL. To put it in simple words, Suppose I want to redirect [url] to [url]. Now if there is a link named contact/index.htm and somebody clicks on it the address bar should display [url]and not redirect to [url]

How can it be possible using URL Rewrite method in .htaccess file?

View 2 Replies View Related

98)Address Already In Use: Make_sock: Could Not Bind To Address [::]:443

Aug 4, 2007

The problem usually goes like this:

- I can't access the webserver
- I'll try to restart httpd, and I'll get

Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443

To fix this, I run

[root@www1 ~]# lsof -i tcp:443
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
perl 11307 apache 4u IPv6 476943447 TCP *:https (LISTEN)

There is always leftover process that is causing the restart to fail. Once i force kill the process, I am able to restart httpd properly.

Now it is ok if this just occurs once in a while, but this problem keeps repeating itself almost everyday at 4am server time (cron time?). What can I do to permanently fix this?

View 5 Replies View Related

Multiple Unique Ip Address For Shared Host ?

Aug 9, 2008

is there a host that lets me add on as many unique ip as i want for extra cost?

for example, i want to test out several prototype .com sites on the same server. however, i want a unique ip for each site.

View 14 Replies View Related

Trace If An Email Address Has Been Blocked By A Host?

Jan 31, 2005

Just wondering if there was a way to trace if an email has been blocked by a webhosts server.

My customer gets an automated email when he books online for Qantas Australia (Australia's biggest Airline Company). I have moved them from an Australian based web host to a US based server and host.

Since the host move, these emails no longer go through to the clients email address on the new hosts server.

I got Qantas to send the email through to me which is on a US server also but a different host to that of my client?? But they did not come through to me even.

I got Qantas to send it through to my personal email address (an Australian bigname ISP) which went through fine and I received it.

The auto generated email possibly could be coming through a 3rd party server so I was thinking maybe this server IP has been blocked for whatever reason (if 3rd party it could have been anyone) It is just strange that used to get them OK through the Australian server and still through my persoanl Australian ISP.

So is there a way to check and confirm and secondly if my suspicions are right would there be a process of trying to get the hosts to accept an email from Qantas as this customer doesnt want to have another email account.

View 10 Replies View Related

Plesk 11.x / Linux :: CentOS 6 - Host Name Must Resolve To Correct IP Address Of Server

Feb 15, 2015

I have a fresh server running CentOS 6 (final). I am trying to install Plesk 11.5.30 but i am experiencing some problems. When i run the plesk-installer i get this message:

Your host name must resolve to the correct IP address of your server, unless you are using network address translation (NAT).

Please quit Parallels Installer, fix the host name resolution problem, and then try installing again.

You can skip the hostname check and continue the installation, however, in such a case, the installer cannot guarantee successful installation.

Now, in my /etc/hosts file i have this:

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

Is this correct? Or do i need to add/change something else?

My server is in the clound.

View 3 Replies View Related

Apache :: Domain Name Binding To IP Address

Jul 6, 2013

I am having the hardest time binding my domain name to my Apache server. If I use the IP address, I can access it just fine even outside of my network. But when I try to bind my domain name to that exact same IP address it just does not work.

I am running Apache 2.0.64 on Windows 8 and my domain name is registered at Name.com. I have contacted them to and I am awaiting a response but they are really backlogged right now and I thought it wouldn't hurt to post here as well. Besides, I thought it might have something to do with my Apache config file anyways and I wanted to make sure.

View 1 Replies View Related

Apache :: Add Abbreviation Of Country In URL Address

May 8, 2014

Apache version > i don't know (i am a godaddy user)
Apache platform > unix

I try to make a change to my current htaccess for now my url looks like> sitename.com/en/filename.ext..I want to get to have an address resembling this:

sitename.com/ca/​​en/filename.ext (in case the country is Canada and french language)
sitename.com/us/en/filename.ext (in case the country is United State and English language)
sitename.com/eu/en/filename.ext (in case the country is Europe and English language)
sitename.com/en/filename.ext (in case the country is not mentioned and English language)

View 1 Replies View Related

Apache :: Client Address Via Status

Nov 1, 2013

Pretty new to Apache and recently enabled teh Apache Server Status module.

A column is confusing me, after CONN/CHILD/SLOT is CLIENT, most of the addresses in this column are my own local addresses but I have a few which I don't recognise and show up on whois.net as follows;

203.188.201.201 = Yahoo Mail
199.87.232.177 = No Result
141.44.51.95 = Query terms are ambiguous
58.218.204.102 = CHINANET-JS

Why would these show on my status?

View 4 Replies View Related

Apache :: How To Open Website Using Its Dedicated IP Address

Feb 12, 2015

I have a VPS and run few websites. I am not good in Apache and Linux. I just got a dedicated IP address for one of my domains. I like that the website opens just by typing the IP address in the address bar of the browser. How can I activate that?

View 5 Replies View Related

Apache :: Load Is Generated From One Single IP Address

Oct 3, 2013

We are using 4 apache and 8 weblogic.When little high load is coming on application (say 300 users), we are getting non-http response code (Non HTTP response code: org.apache.http.conn.HttpHostConnectException).And also all the load is generated from one single IP address.And we are using apache 2.2.

View 1 Replies View Related

Apache :: How To Restrict Access Via IP Address For Specific Webpages

Apr 17, 2014

I'm using Concrete5 CMS to create a website. This CMS creates/manages all its webpages in a mySQL database. Thus, there is no physical folder associated with each webpage, so I can't simply create an .htaccess file and place it in the directory tree in the right sub-folder to restrict access for that sub-folder and all folders it contains.

I have one .htaccess file located at the root level (e.g top-level folder for the website).

QUESTION 1: I need place in this top-level .htaccess file to (1) restrict access to only two specific IP addresses that I can specify (blocking access to all other IP addresses), and (2) specify the URL addresses that I wish to apply this rule to?

For example, let's say my website is [URL] ....

And I want to restrict access to the [URL] ....

and my .htaccess file is located at

/home/myname/public_html/conc/.htaccess

What code can do that?

View 1 Replies View Related

Apache :: Type Full Address With Port Number?

Jan 30, 2014

Have to type the full address with port number....

View 4 Replies View Related

Apache :: Created Certificate - Mismatched Address Error

Apr 29, 2015

I created certificate and it appears to be working but I am always getting a cert error about a mismatched address. I have checked my settings and the certificate and host names match. It doesn't make sense. I have looked online at different forums and support sites but nothing has worked. The only thing I can think to do is to get a new cert. This cert is for an internal site only...

View 11 Replies View Related

Apache :: Access HTTP Address Redirects To HTTPS Just Fine

Jun 19, 2013

I'm currently struggling with an issue on our Apache 2.2.24 home-rolled installation on an OEL 6.2 x64 linux server that front-ends for a Glassfish cluster via proxypass.The httpd.conf manages 4 virtual hosts with each virtual host entry rewriting to HTTPS.

Anyone trying to access the HTTP address redirects to HTTPS just fine.The issue is that anyone using the HTTPS address gets redirected to the Document Root defined in Apache instead of being proxypassed to Glassfish.

I had set up a dummy DocumentRoot with a simple index.html meta redirect and what happens is that anyone directly accessing HTTPS will hit the index.html file which redirects to the the https site. At this point it simply loops to infinity.

View 1 Replies View Related

Apache Virtual Host

Jul 25, 2008

For some reason, the first virtual host i have listed in apache2.conf gets all the traffic of all the other virtual hosts listed below it.

Example: Domain xyz.com is listed as the first virtual host. the second, third, and fourth are 123.com, 987.com, and mno.com, respectively (fictitious domains). However, it seems that everything below xyz.com goes straight to xyz.com.

If i switch the first entry, xyz.com with any of the others, such as mno.com, so that mno.com is the first virtual host entry, everything then forwards to that domain.

View 0 Replies View Related

Apache :: Prevent Unnecessary GET Requests Processed By CMS That Originate From Mutating IP Address Location

Apr 10, 2015

I'm trying to prevent unnecessary GET requests from being processed by my CMS that originate from mutating IP address locations. This is sucking up server resources when the request is processed by the app, and so if possible, I'd like to block them with HTACCESS so that the request is stopped before anything is intensively-processed.

What happens is that an IP address will make a GET request for, say, "blah/test" or "blah/test2" but nothing else (no site assets like images or CSS/JavaScript files or even other pages). After this request, another IP address will then make an equivalent kind of request, and so on, and so on... All of them have similar if not identical user agent strings but they're always worthless requests that do nothing but waste CPU and RAM. I'm assuming it's just some idiotic SPAM bot because of this.

View 8 Replies View Related

Apache - Run Virtual Host As User

Jun 5, 2009

I've run into a wall trying to run apache with multiple websites allowing users to use FTPd to manage files.

I'm running FreeBSD 7.1 on Apache 2.2.x

The issue is that Apache runs as www:www but FTPd writes the files as username:client. When performing some scripts that edit back-end files, this obviously can cause errors.

The data for each directory is stored in /home/username/www

I looked into some apache directives I could use. I tried putting User and Group directives into the vhost configuration for each vhost, but that did not work. I even found the perchild module and it looked like it can do the job but was a bit scared and turned off by the fact that it states it is beta at the top of the page. (I cannot link to it because I do not have enough posts.)

View 2 Replies View Related

Apache Virtual Host, Can't Use Allowoverride

Jun 8, 2008

I have a virtual host and I want to allow .htaccess files to be used, but that requires to put allow override yes in the virtual host declairation as its off by default, but I get this error:

Starting httpd: Syntax error on line 16 of /etc/httpd/conf/virtualhosts.conf:
AllowOverride not allowed here

This completly ditches my whole virtual hosting idea that I've been planing for a while.

Any other way to allow .htaccess through virtual hosts?

using apache 2.2.3

View 4 Replies View Related

Apache ReverseProxy On Virtual Host

Nov 20, 2007

Today I configured a Virtual Host (VH) for one of my customers. VH run on WindowsServer 2003 Apache 2.0.59. I enabled mod_proxy and mod_proxy_http modules and successfully loaded. Here is the VH config:

Code:

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerAdmin admin@example.com
ServerName www.example.com
DocumentRoot C:/Apache2/htdocs/www/example.com
DirectoryIndex index.php
<Proxy *>
Order Deny,Allow
Allow from all
</Proxy>
ProxyRequests Off
ProxyPass /cms-test [url]
ProxyPassReverse /cms-test [url]
ProxyPass /cms-eshop [url]
ProxyPassReverse /cms-eshop [url]
ErrorLog logs/www.example.com-error.log
CustomLog logs/www.example.com-access.log combined
</VirtualHost>
According stated above proxy should map the content of yyy.yyy.yyy.yyy:80 and send it to client... Apache doesn't do that but redirects client directly to yyy.yyy.yyy.yyy instead, even rewriting URL, what is not proper purpose of proxy. I would expect proxy to retrieve content from yyy.yyy.yyy.yyy:80 and forward it to client without URL rewriting. Rewriting URL and direct aiming of client to source of content is unsuccessfull of course, because the source (yyy.yyy.yyy.yyy:80) trust only to xxx.xxx.xxx.xxx which has a right to request a content.

Could anybody explain why proxy doesn't proxy and redirects instead?

View 2 Replies View Related

Setting Up Virtual Host In Apache

Mar 25, 2007

I'm trying to setup a subdomain, and this is what i've added in httpd.conf

<VirtualHost 000.000.000.000>
ServerName dir.domain.com
DocumentRoot /home/domain/html/dir/
</VirtualHost>

Am i missing something here? I restarted httpd when finished.. but it doesnt work.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved