Alt-Python - Turning off passenger on subdirectory

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmitriy.r
    Junior Member
    • Mar 2021
    • 5

    #1

    Alt-Python - Turning off passenger on subdirectory

    python passenger
  • eric.merkel
    Junior Member
    • Jan 2018
    • 15

    #2
    I am trying to turn off passenger for a subdirectory for a web application. For whatever reason it keeps getting routed to python instead of normal web server. Here is how I set it up.

    Created directory virtualhost.conf file here /usr/local/apache/conf/userdata/std/2_2/username/domain.org which included

    PassengerEnabled off
    AllowOverride all

    /scripts/ensure_vhost_includes --user=user
    /scripts/restartsrv_httpd

    Any ideas what I am missing or why this is not working?

    Best regards,
    Eric

    Comment

    • bogdan.sh
      Administrator
      • Nov 2016
      • 1220

      #3
      By the way, another working method is to place "PassengerEnabled off" into /home/user/public_html/database/admin/.htaccess file.

      Comment

      • eric.merkel
        Junior Member
        • Jan 2018
        • 15

        #4
        Ive check and the Include file is in the main httpd.conf but it is still not working.

        I also tried the .htaccess method but I am getting the following error.

        "
        I am scratching my head.

        Eric

        Comment

        • bogdan.sh
          Administrator
          • Nov 2016
          • 1220

          #5
          Eric, just place single line into .htaccess file:

          Code:
          PassengerEnabled off

          Comment

          Working...