Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Question on mod_rewrite on JWS 3.0

    Posted on

    I am trying to use mod_rewrite to redirect a url such as https://example.com to https://example.com/someContext

    I have configured the following virutalhost:

    DocumentRoot /opt/redhat/jws-3.0/httpd/www/example.com
    ServerName example.com

    RewriteEngine On
    Rewrite ^(.*) someExample/$1 [L,R,PT]

    Once I start up the httpd server, I see the following error in the log:

    AH00526: Syntax error on line 11 of /opt/redhat/jws-3.0/httpd/conf.d/ssl_example.conf:
    Invalid command 'Rewrite', perhaps misspelled or defined by a module not included in the server configuration

    Do I need to enable mod_rewrite?

    Thanks!

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2026 Red Hat