homepage Welcome to WebmasterWorld Guest from 54.167.11.16
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Dusty pages not accessable from apache server
apacheln




msg:4548967
 2:08 pm on Feb 26, 2013 (gmt 0)

We are using apache 2.2.3 on Red Hat Enterprise Linux Server release 5.8 Beta (Tikanga).

We have many virtual hosts setup in single apache server.When the backend application server is down, we configured dusty pages in virtual host files, but these arent accessable via browser.Checked everything i could but couldnt find anything.

Example:

virtual host: example.com
DocumentRoot: /home/atgwww/docroot/
Dusty page : /Dusty/store/GFdusty.html

$ pwd
/home/atgwww/docroot/Dusty/store
$ ls -lrt GFd*
-rwxrwxr-x 1 atgwww atgwww 499 Apr 20 2012 GFdusty.html

 

apacheln




msg:4548972
 2:20 pm on Feb 26, 2013 (gmt 0)

More info regarding the same:

When i try to access

example.com/Dusty/store/GFdusty.html

I get the below message from browser.

Failure of server APACHE bridge:
Neither cluster nor server host parameter was specified in httpd.conf. Cannot continue.

phranque




msg:4549322
 4:42 am on Feb 27, 2013 (gmt 0)

welcome to WebmasterWorld, apacheln!


what happens when you request the root directory?

http://example.com/

apacheln




msg:4549439
 2:16 pm on Feb 27, 2013 (gmt 0)

Hi phranque,
When i hit the url its redirecting me to application configured in virtual host i.e backend war file deployed on weblogic. But when i try to hit the dusty page directly i get the apache failure error as shown above.

My vhost file:

<VirtualHost shopping-devel-uwebda01.ext.asp.cuc.com:80>
ServerName example.com
RewriteEngine on
##### Disable Trace Method #####
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteLog logs/rewrite
DocumentRoot /home/atgwww/docroot/
# Redirect all requests to ssl and preserve the querystring
RewriteRule ^.*$ https://example.com$0 [L,QSA]
</VirtualHost>

<VirtualHost shopping-devel-uwebda01.ext.asp.cuc.com:443>
ServerName example.com
DocumentRoot /home/atgwww/docroot/
RewriteEngine on
##### Disable Trace Method #####
RewriteCond %{REQUEST_METHOD} ^TRACE
RewriteRule .* - [F]
RewriteLog logs/rewrite
SSLEngine on
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

SSLCipherSuite ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /home/atgwww/certs/shopping-devel-uwebda01.crt
SSLCertificateKeyFile /home/atgwww/certs/shopping-devel-uwebda01.key
SSLProtocol -ALL +SSLv3 +TLSv1

<IfDefine !usty>
RewriteRule ^/$ /ancillary-access/ [L,R,QSA]
<LocationMatch "^/(ancillary-access|certs|MEDIA_*|static|ProductImages|CategoryImages|Utilities_Web|Images|logview)">
SetHandler weblogic-handler
WLCookieName store-cookie
WebLogicCluster wlserver:9602,wlserver:9602
DynamicServerList OFF
SecureProxy ON
WLSSLWallet /home/atgwww/certs/Wallet
ErrorPage /Dusty/store/GFdusty.html
# uncomment for debug to /tmp
#Debug ALL
WLForwardUriUnparsed ON
WLExcludePathOrMimeType /MEDIA_*/*,/static/*,/ProductImages/*,/CategoryImages/*,/Utilities_Web/*,Images/*
</LocationMatch>
</IfDefine>
# If we got this far Apache was started under dusty mode
# The following conditions allow images/styles to be
# returned
RewriteCond %{REQUEST_URI} !^/ancillary-access/*
RewriteCond %{REQUEST_URI} !^/certs/*
RewriteCond %{REQUEST_URI} !^/MEDIA_*/*
RewriteCond %{REQUEST_URI} !^/static/*
RewriteCond %{REQUEST_URI} !^/ProductImages/*
RewriteCond %{REQUEST_URI} !^/CategoryImages/*
RewriteCond %{REQUEST_URI} !^/Utilities_Web/*
RewriteCond %{REQUEST_URI} !^/Images/*
RewriteCond %{REQUEST_URI} !^/Dusty/*
RewriteRule .* /Dusty/store/GFdusty.html [L]

CustomLog /home/atgwww/logs/httpd/access_log common
ErrorLog /home/atgwww/logs/httpd/error_log
</VirtualHost>

phranque




msg:4550345
 5:28 am on Mar 2, 2013 (gmt 0)

this looks like it could be suspect:

<IfDefine !usty>


even more likely, i don't immediately see how this LocationMatch would trigger for a /Dusty path:


<LocationMatch "^/(ancillary-access|certs|MEDIA_*|static|ProductImages|CategoryImages|Utilities_Web|Images|logview)">


in either case if apache doesn't process the WebLogicCluster directive that probably is the cause for the missing server host parameter.

apacheln




msg:4550929
 2:36 pm on Mar 4, 2013 (gmt 0)

Incase the WebLogicCluster defined is down, it should show the custom error page as mentioned in the apache plugin paramters link.

[docs.oracle.com...]

Even though weblogic isnt down, when i hit the url
example.com/Dusty/store/GFdusty.html it should show the dusty html file. This setup is working in one environment and not in another.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved