LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2012, 10:08 AM   #1
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Rep: Reputation: 31
disable redirect for /server-status


Hello

I have a apache2 server that perform redirects. I want to enable server-status with the appropriate module but the redirect that is configured in the pages is causing problems. and i get page not found.

is there a way i can disable redirect sot hat i can use http://localhost/server-status? but without affecting the rest of the pages.

thank you
 
Old 10-26-2012, 03:49 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You should post the apache config file, so we can see how those redirects are performed, in order to assist you.

Cheers
 
Old 10-29-2012, 03:40 AM   #3
mariogarcia
Member
 
Registered: Sep 2005
Distribution: debian, solaris 10
Posts: 202

Original Poster
Rep: Reputation: 31
Hello,
thi is the redirect I believe is causing trouble with my server-status page:

######################## ######################
<VirtualHost *:80>
ServerAdmin support@localhhost
ServerName www.emailplanning.com
DocumentRoot /srv/www/htdocs
Redirect / http://www.clicplanning.com/
ErrorLog /var/log/apache2/error_log
CustomLog /var/log/apache2/access_log combined
Include /etc/apache2/conf.d/*.conf

Alias /emailIncludes "/srv/www/secure/emailIncludes"

<Directory "/srv/www/secure/emailIncludes">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

</VirtualHost>
############################ END MAIN VHOST ##########################

let me know if you need something more.

thank you.
 
Old 10-29-2012, 05:44 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can use mod_rewrite onstead of "Redirect" to overcome this inconvenience:
Code:
RewriteEngine On

RewriteCond %{REQUEST_URI} !^/server-status
RewriteRule (.*) http://www.clicplanning.com$1
If you allow /server-status only from localhost, then you need to add:
Code:
RewriteCond %{HTTP_HOST} !^localhost$
RewriteCond %{REQUEST_URI} ^/server-status
RewriteRule /server-status http://localhost/server-status
Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirect subdomain to another server Gornati Linux - Server 5 01-10-2012 07:11 AM
Server Hung due to hda: status timeout: status=0xd0 { Busy } adamalic Linux - Enterprise 3 12-15-2011 01:27 PM
Server status command output getting dumped to smtp server instead of a file VC0041098 Linux - Server 2 05-26-2010 11:00 AM
How to disable delivery status notification courier sci3ntist Linux - Server 0 01-15-2008 06:35 AM
how to redirect traffic from one server to another orko Linux - Networking 1 08-12-2006 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration