Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7719019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T03:18:34+00:00 2026-06-01T03:18:34+00:00

I am using Apache as a web server to rewrite urls. The pattern is

  • 0

I am using Apache as a web server to rewrite urls. The pattern is simple:

if request starts with "/services" then
  rewrite is off
else
  using ssl. replaces http with https

So i have my own solution:

 RewriteEngine On
 RewriteCond %{REQUEST_URI} !^/services.* [NC]
 RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Also i separate access logs by urL , one is ssl access logs and the other is none ssl access logs . What I want see is the none ssl access logs contains request only start with services .But i have found some requests in none ssl access logs likes this:

10.75.6.22 - - [28/Mar/2012:08:38:08 +0800] "GET /validate/showValidateProgress.jsp?
10.186.96.70 - - [28/Mar/2012:09:01:48 +0800] "GET /vjsp/confirm.jsp?

The requests not start with /services should using ssl unfortunately my configuration file is not working . But there is still some requests in ssl access logs which means some of the request satisfy my expectation .
I am very confuse about the logs and can’t figure out what’s wrong with my configuration. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T03:18:35+00:00Added an answer on June 1, 2026 at 3:18 am

    That should work:

    # if request starts with "/services" then rewrite is off
    RewriteRule ^/services - [QSA,NC,L]
    # using ssl. replaces http with https
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Apache and mod_rewrite to rewrite URLs for my web app. You can
I'm trying to host a python script using an apache web server, but the
I'm using Weblogic application server and Apache web server in my J2EE environment and
I am using Apache Axis to connect my Java app to a web server.
I have a web site using apache httpd as the server and mysql as
mod_authn_otp is an Apache web server module for two-factor authentication using one-time passwords (OTP)
I'm using mod_mem_cache in my apache web server to cache static content, but I
I am planning on using Apache Tomcat 6.0 as web server in my web
I am using apache web server as a load balancer for two tomcat instances
I am using Apache HTTP server as a web server in front of WebLogic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.