Re: Send a request to another apache server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>Hi,
Hi

><VirtualHost webmail.domain.com:80>
>        ServerName domain.com
>        RedirectPermanent / https://destination.domain.com
></VirtualHost>
So, this is what i have in my vhost.conf file:
<VirtualHost webmail.some-domain.com:80>
    ServerName some-domain.com
    RedirectPermanent / http://otherdomain.com:8080
</VirtualHost>
Then i restart apache. Goto webmail.some-domain.com and i am taken to my webpage and it should take me to our web email. I have mod_alias loaded, according to phpinfo found at http://mytimewithgod.net/phpinfo.php.

I also have their website hosted on my server. Here is that section from vhost.conf:
<VirtualHost *:80>
    ServerAdmin administrator@xxxxxxxxxxxxxxx
    ServerName some-domain.com
    ServerAlias www.some-domain.com
    DocumentRoot /path/to/web/site/some-domain

    # if not specified, the global error log is used
    ErrorLog /var/log/apache2/some-domain-error_log
    CustomLog /var/log/apache2/some--access_log combined

    # don't loose time with IP address lookups
    HostnameLookups Off

    # needed for named virtual hosts
    UseCanonicalName Off

    # configures the footer on server-generated documents
    ServerSignature On


    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "/path/to/web/site/some-domain">    
	#
	# Controls who can get stuff from this server.
	#
	Order allow,deny
	Allow from all
    
    </Directory>

</VirtualHost>

These 2 sections are separate in the vhost.conf file. Thanks again for any help.


On Wed, Jul 16, 2008 at 12:41 PM, Chris Arnold
<carnold@xxxxxxxxxxxxxxxxxxx> wrote:
> Using apache2 2.2.3 on SLES10 SP2. What we have:
>
> 1 webserver on 123 subnet. Answers for port 80
> 1 email server with it's own small apache server on 124 subnet answers for port 8080
> 1 firewall/router with 1 IP (forwards to internal server addresses)
>
> What we want to do:
> When users enter some address in their browser, say webmail.domain.tld (which goes to server 1 on port 80) to goto the second server on 124 subnet on port 8080. Is there anyway to tell server 1 on port 80, when a specific url comes to it, send to second server on port 8080? Can this be done with the .htaccess file? Or can it be done at all? Thanks for any doc's/help
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux