Apache :: Multiple Server Redirection

Jul 16, 2015

Our servers has been updated recently and my site is not working properly. It was working before the server change. When I click on the links, it doesn't update correctly, instead it gets the last cached data. I have to refresh each link for it to update which shouldn't be the case. I'm a front-end and have no access to servers. Could this be server-related?

View 1 Replies


Apache :: Internal Server Redirection Vhost

May 26, 2013

I have a Public [82.x.x.x] and Private Apache Servers [], and wish to redirect a series of subdomain requests i.e. for joomla.example.com or moodle.example.com on 82.x.x.x => joomla.example.com or moodle.example.com on

joomla.example.com [82.x.x.x] returns joomla.example.com []

moodle.example.com [82.x.x.x] however returns joomla.example.com []

VHOST Configuration on [82.x.x.x]:

<VirtualHost *:80>
ServerName joomla.example.com
RewriteEngine On
RewriteRule ^(.*)$$1 [P]
<VirtualHost *:80>
ServerName moodle.example.com
RewriteEngine On
RewriteRule ^(.*)$$1 [P]


VHOST Configuration on []

<VirtualHost *:80>
# joomla.example.com>
ServerName joomla.example.com
ServerAlias joomla.example.com
DocumentRoot /var/www/joomla/
ServerRoot /var/www/joomla/
ScriptAlias /cgi-bin/ /var/www/~cgi-bin/joomla/
ErrorLog /var/www/~log/joomla/error.log
CustomLog /var/www/~log/joomla/access.log combined
ErrorDocument 404 /404.htm

[Code] ......

View 2 Replies View Related

Apache :: Htaccess - Silent Redirection From One Directory To Another?

Sep 26, 2013

apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects

View 1 Replies View Related

Apache :: HTTP To HTTPS Redirection And Preserve Canonical

Aug 26, 2014

I want to rewrite my all site urls from http to https and also preserve URL canonicalation like all url redirected to http://www. How to achieve this goal?

View 1 Replies View Related

Apache :: Multiple Error Codes For Multiple Pages

Nov 9, 2012

Depending on where u are at on my site (documents pages, training, main root, etc.) will depend on which type of background, footer, header and the like you'll get. Now I was thinking. Is there a way to have multiple error messages for more then one page depending on where you are at on a site? Right now it's intranet site and a modded snitz forum. What is the code and were does it go and in which apache conf file(s) does it go in?

View 1 Replies View Related

Multiple Domains On A Dedicated Server, Plesk, Users And Apache

Jul 1, 2008

In my old server (VPS) I had my dir structure as:

sitea.com was pointing to

siteb.com was pointing to

On my new server, I have root permissions and used Plesk to create two domains sitea.com and siteb.com . Now plesk asks for a user to be created for each domain, so created usera and userb for sitea and siteb respectively.

Now as root on my server I created the dir /home/me/ and untarred the whole backup from old server to new server and I have dirs :

/home/me/public_html/sitea and /home/me/public_html/siteb

In apache configuration in file:
httpd.include_sitea under
dir /var/www/vhosts/sitea.com/conf/httpd.include

I changed the document root to /home/me/public_html/sitea

So I thought I am all set. But it does not work. When I try sitea.com in the browser it works but for all subdirs, for eg sitea.com/images it says Access denied.

This is because the dirs I created are owned by root.

So the owner of /home/me/public_html/sitea needs to be usera for this to work ?

Again for siteb to work I need to change the owner of /home/me/public_html/siteb to userb ?

This will be painful ? At least I should be able to change the owner of /home/me/public_html/ to one owner and ensure all sites under that work fine. How do I do that ?

I think the problem is clear by now. Its that I want all my sites to work off from .../public_html/ sub dirs.

View 2 Replies View Related

IIS Transparent Server-side Redirection

Sep 18, 2008

I've been asked to find a way to host our intranet externally without opening up the network.

The webserver accessible to the public domain is within an dmz. The intranet I need to serve is within our internal network.

I've managed to convince our network admin to open port 80 on the server running the intranet but I can't seem to find a way to proxy the content from the intranet server, through the webserver and to the user.

View 3 Replies View Related

Domain Name Server (DNS) Redirection / Setting Up Zone(s)

Oct 24, 2007

I have a quick question about some DNS zones I'm trying to set up for a customer. I figured I would try asking the community before bugging our top-level admins (they have enough to do already, and I'd rather learn this myself).

We have a customer for whom we are managing their DNS. The site is actually hosted elsewhere, but the DNS originates on our server.

They have another site that is hosted with us, and they would like to set up a subdomain redirect from the remotely-hosted site to the site hosted on our hardware. So, the situation looks something like this:

example.com : hosted elsewhere (primary IP not ours), DNS with us
FooSite.example.com : redirect this to www.FooSite.com

I could edit httpd.conf, but it would be easiest (for firewall reasons at the moment) if I could enter in the proper zones via WHM zone editor. I'll be able to see the results either way. I tried setting up the 'A' and 'CNAME' records, and I got as far as directing the 'A' records for the subdomain to the local IP, but I'm not sure how to finish it off (assuming I'm going down the right path). My own knowledge level in this regard is somewhere between novice and intermediate (which is why I have partners and admins ).

View 10 Replies View Related

Apache :: Redirection Page From Subdomain To New Subdomain

May 11, 2015

Wordpress installation (WPML with 3rd level domain es. site. com, fr. site. com).

I need to redirect page from subdomain to a new subdomain

esp.site.com/oldpage -> es.site.com/newpage (different subdomain)
esp.site.com/oldpage1 -> es.site.com/newpage
esp.site.com/oldpage2 -> es.site.com/newpage

Source site is very chaotic and there are no clear rule for redirection (no regex )

So I need to redirect every page but syntax:

Redirect 301 esp.site.com/oldpage http:// es.site.com/newpage

doesn't work!

which is the correct syntax ?

Can I manage all from one .htaccess file in main root (www) or should I create "esp" directory (and point old subdomain to it - one for every language) and put .htaccess in every directory with redirection ? 

View 1 Replies View Related

Multiple Sites On Apache

Jul 8, 2007

Can i run multiple sites on apache? and if so how do i do it.

View 3 Replies View Related

Apache Keeps Stopping. MULTIPLE Times Per Day!

Jul 1, 2009

Apache keeps stopping. MULTIPLE times per day! There is no logic to when it dies. But about every 2 hours.

Load stays below .30 and there is free memory available.

This is on a VPS machine. None of the other VPS's are having an issue. Just this one.

Centos release 5.3 (Final)

Here is what is in the httpd.conf file. I realize the numbers are way too high, but just trying to get this issue to go away.

<IfModule prefork.c>
StartServers 100
MinSpareServers 100
MaxSpareServers 100
ServerLimit 512
MaxClients 512
MaxRequestsPerChild 4000

<IfModule worker.c>
StartServers 100
MaxClients 500
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 100
Here is what is in the /var/log/httpd/error_log file before it dies:

[Wed Jul 01 18:06:32 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 98 idle, and 108 total children
[Wed Jul 01 18:08:17 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 74 idle, and 76 total children
[Wed Jul 01 18:08:18 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 63 idle, and 63 total children
[Wed Jul 01 18:08:19 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 32 children, there are 79 idle, and 79 total children
[Wed Jul 01 18:11:36 2009] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 93 idle, and 108 total children

View 5 Replies View Related

Apache :: 2.4 - How To Configure Multiple Clusters

May 2, 2013

I wanted to configure 2 clusters on Apache 2.4. Here are my sample configurations

Cluster 1 config:

<VirtualHost *:80>
ServerName mywebsite1.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://sgcluster>
BalancerMember http://IPaddress1:80/ loadfactor=1
BalancerMember http://IPaddress2:80/ loadfactor=2
ProxySet lbmethod=byrequests

[Code] ....

I've included both configuration file in httpd.conf. I'm getting the errors, when I tried to start up the apache.

[Thu May 02 11:01:34.243583 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(448): AH02301: attach looking for /opt/apache2/logs/slo
[Thu May 02 11:01:34.243667 2013] [lbmethod_heartbeat:notice] [pid 9240606:tid 1] AH02282: No slotmem from mod_heartmonitor

[Code] .....

View 2 Replies View Related

Apache :: Add Multiple Web Pages To Website?

Jan 23, 2014

How do I add multiple web pages to my server?

View 6 Replies View Related

Apache :: Multiple Readme Files?

Mar 7, 2014

I very much like the "readme.txt" that Apache appends to the directory listings. That is, when a browser GETs a directory, the text in that file is put underneath the list of files therein.

View 1 Replies View Related

Apache :: Load Balance Multiple Domains?

Apr 2, 2015

I am completely new to apache and I had the load balancer set up for a single domain that was working perfectly fine, but when it came to multiple domains i couldn't, for the life of me, figure out what to do.

There is example.com sub.example.com and otherexample.com

I had a single node set up for this but I want to experiment with the balancer. I have scratched Google and I only found broken info which couldn't explain much to me. Here are my domains

<VirtualHost *:80>
DocumentRoot "/var/www/domain.com"
ServerName domain.com

[Code] ....

Any example configuration of the default file.

View 1 Replies View Related

Apache :: Multiple Backend Ports For One Instance

Jun 16, 2014

I inherited an Apache HTTP instance from a colleague. That's why I'm not deep into that stuff. My current scenario is the following: We are running several backend instances which are published to the internet via Apache HTTP Server which is configured as Reverse Proxy (RP). In the past there was only one port and one protocol to handle by the Apache HTTP (RP).

Now I have the following need. There has to be published a Web Service from one instance using two Ports with two protocols (HTTP and HTTPs). I'm not sure how to solve that need.

A solution I tried already was to change and add the variable DEF_BACKEND_PORT to DEF_BACKEND_PORT_1 and DEF_BACKEND_PORT_2 but it didn't worked.

View 2 Replies View Related

Apache :: Redirecting To Multiple Webapps In Same Tomcat

Jun 25, 2015

I must say that I tried a lot of possibilities but my knowledgment in Apache WS is not too much advanced.

Apache Web Server version: 2.2.22
OS: Centos 6 64 bits
Tomcat version: 7.0.57

What I need to achieve is the following:

I have some plain websites defined this way:

<VirtualHost *:80>
ServerAdmin example1@example1.com
DocumentRoot "/opt/sites/example1/"
ServerName example1.com
ErrorLog logs/example1-error_log
CustomLog logs/example1-access_log common
RedirectMatch permanent ^/(.*) http://www.example1.com/$1

[Code] ....

View 5 Replies View Related

Apache :: 2.4.9 For Windows With Multiple Virtual Hosts

Jun 5, 2014

I have my Apache 2.4.9 for Windows with multiple Virtual Hosts, the main one is configure like this:

NameVirtualHost vhost1.domain.org:80
<VirtualHost vhost1.domain.org:80>
ServerName vhost1.domain.org
DocumentRoot "C:/Apache24/htdocs"
ServerAdmin techsupport@domain.org
# ErrorLog "logs/vhost1.domain.org-error.log"
# CustomLog "logs/vhost1.domain.org-access.log" common

The rest like this:

NameVirtualHost vhost2.domain.org:80
<VirtualHost vhost2.domain.org:80>
ServerName vhost2.domain.org
DocumentRoot "C:/Apache24/htdocs/vhost2"
ServerAdmin techsupport@domain.org
# ErrorLog "logs/vhost2.domain.org-error.log"
# CustomLog "logs/vhost2.domain.org-access.log" common

There is no *:80 anywhere and still when I go to any vhost it always load the main one.

What else do I need to check?

View 19 Replies View Related

Apache :: Setting Up URL Rewrite Rules Multiple VHs

Oct 21, 2012

I'm kinda new to apache and I have the following situation.

I have a vps, on which I have set the following:

WordPress Site A, has it's own VirtualHost and domain
WordPress Site B, has it's own VirtualHost and domain
Canvas LMS (not connected to a domain).
Canvas LMS can add multiple accounts, which may (or may not) be accessed individually using a URL that looks as follows:


For example : http://....../accounts/4/

I need to add a link to each of WP sites, which points to each site's account on Canvas, such that it appears as .../learning/ folder

For example:


which actually represents


Which in turn represents



Noticing the following:

I do not want the users to see the /account/4/ , just /learning/
I also want to prevent accessing
Canvas LMS is located beyond the website's DocumentRoot
I want this to work with both HTTP and HTTPS

View 3 Replies View Related

Apache :: Times Out When Multiple Vhosts Are In Place

Apr 21, 2015

when I had multiple (at least 5) vhosts set to Apache when it just hanged, this was fixed adding:

Acceptfilter http none
Acceptfilter https none

To my httpd.conf, but now it's not hanging, it just times out, I get no error, nothing in the error.log file, it just times out.

After doing a refresh, it comes back like nothing happened.

View 13 Replies View Related

Which Versions Of Apache And Mysql Can Take Advantage Of Multiple Cpus

May 15, 2007

Are there particular version of mysql or apache that are best suited when you want to utilize a multi-core/multi-cpu system? For example, we are currently using apache 1.3 and am not sure if it has the inherent ability to use multiple cpus to its benefit.

Or would the fact that it spawns child processes take advantage as the processes will be spawned on the different CPUs?

View 6 Replies View Related

Apache :: Multiple Servers On Single Linux Box Redhat

Nov 5, 2014

I need to configure multiple Apache Web Servers on redhat server. I have copied and extracted Apache 2.2 into redhat server and extracted but not able to install because I don't understand setting prefix. Please let me explain about prefix configuration and how to set it. At the same time I would like to know is it possible to setup 4 Apache Web Servers on same machine if possible then how to. Can we set up different versions of Apache HTTP Servers?

View 17 Replies View Related

Apache :: Unable To Get Multiple GUN Groups To Have Access To Directories

May 24, 2013

I'm trying to get multiple GUN groups to have access to certain directories.

Access to transport, delete

When you go to access transport or delete you get prompted for user name and password when entered you get in. However when I add GUNtest10 in the required ldap group. It doesnt accept your user name and password.

######ACL Directives######

LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
<Directory /bills/>
AuthType Basic
AuthBasicProvider ldap
AuthName "1Login with your Windows ID and password"


View 1 Replies View Related

Apache :: Multiple NICs And DHCP - How To Force Listener To IP

May 28, 2013

I have apache installed on a box with 2 nics. I've seen how to force the listener to an IP, but the issue is that this box uses DHCP. Is it possible to lock the listener to a network/subnet or to a specific NIC?

View 2 Replies View Related

Apache :: Multiple Virtual Host On RP Doesn't Send The Right Certificate

Jul 16, 2014

I am using apache as a reverse proxy, I have several site with http and everything is working fine. For the first time I have tried to configure with https port 443 with certificate, the problem is that it doesn't return to the browser the certificate that I have indicate in the "virtual host" but rather the default certificate of the site.

Here is my virtual host :

<VirtualHost *:443>
ServerName hygie.sante-idf.fr
SSLEngine on
SSLProtocol all
SSLCertificateFile "/root/apacherp/cert/hygiesslcertificate.cert"
SSLCACertificateFile "/root/apacherp/cert/hygieCAcertificate.cert"
SSLCertificateKeyFile "/root/apacherp/cert/hygieprivate.cert"
ProxyPass / http://XXXXXX/
ProxyPassReverse / http://XXXXXX/

Everything is fine when I start stop, I m sure the entry is used I have added : NameVirtualHost *:443

But the Certificate information arent the one that I have enterred , but the default values I think....

httpd -v
Server version: Apache/2.2.3
Server built: Mar 4 2010 09:57:54

View 7 Replies View Related

CNAME Redirection To A URL?

May 28, 2008

Just a quick question, can i setup a cname to redirect user to a URL instead of domain.... like


I have to do this on Windows server with IIS so i can't use mod_rewrite etc!

View 4 Replies View Related

Redirection Error

May 6, 2008

i just got code for .htaccess to redirect mydomain.com to a directory on the same domain here directory123 is that name of directory where i wanna redirect my domain but problem is that when i put complete url like
www.mydomain.com then it will successfull redirect to www.mydomain.com/direcotry123

But when i put address like mydomain.com without www then it will not redirect kindly check and let me know the correction to redirect it as well

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
order deny,allow
deny from all
AuthName mydomain.com
AuthUserFile /home/username/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/username/public_html/_vti_pvt/service.grp

#RedirectMatch permanent ^/$ [url]

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.mydomain.com$ [NC]
RewriteRule .* http://www.mydomain.com/directory123

View 1 Replies View Related

Domain Redirection

Dec 8, 2007

My company provides free websites using an automated website builder we designed years ago. We also offer a option where members can add a domain name to their site. Because all our members pages are generated dynamically by the web builder script, when member adds the domain name option we simply add a DNS entry that includes an A record that directs the domain name to the IP address of the account on the server where the web builder is installed. All domains point to the same script and that script looks the domain up in a database table and gets the web page data for that website.

membersite1.com = /home/webbuilder/public_html/index.php
membersite2.com = /home/webbuilder/public_html/index.php

We are about to launch a new website builder that is not database-driven but includes a sub-directory for each member site. So, I need to find a way to redirect each member's domain to their sub-directory

membersite1.com = /home/webbuilder/public_html/member/m/membersite1
membersite2.com = /home/webbuilder/public_html/member/m/membersite2

I thought I could do with mod_rewrite in a .htaccess file in /home/webbuilder/public_html:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^membersite1.com [NC]
RewriteRule ^/(.*) ^/member/m/membersite1/$1 [L]

But it's not working. The .htaccess file has no impact at all.

.htaccess fle working? Or is there another, better way to point a domain name to a sub-directory?

View 0 Replies View Related

Subdomain Redirection

Mar 30, 2007

Although I'm able to redirect my subdomain to the /htdocs/subdomain directory using a php script, but the URL changes from [url]to [url]

And since I'm on windows, htaccess doesn't seem to work for me. Tried adding VirtualHost thingy into httpd.conf but then Apache doesn't start with it.

Is there any way to redirect [url]to /htdocs/subdir without changing the URL?

View 11 Replies View Related

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