Alt-Python - Отключение пассажира в подкаталоге
Форум
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Eric Merkel
  2. Tuesday, 26 April 2016
  3.  Subscribe via email
python passenger
Rate this post:
  1. 26.04.2016 17:04:12
  2. # 1
Eric Merkel Accepted Answer
Posts: 15
Joined: 31.12.2014
0
Votes
Undo
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
  1. 27.04.2016 01:04:38
  2. # 2
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
I have just tried the same and it works properly for me. I did absolutely the same.

Please ensure you use httpd 2.2 with \'httpd -V\' . And check if process really include your config with \'grep user /usr/local/apache/conf/httpd.conf | grep Include\'
  1. 27.04.2016 01:04:32
  2. # 3
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
By the way, another working method is to place \"PassengerEnabled off\" into /home/user/public_html/database/admin/.htaccess file.
  1. 27.04.2016 15:04:40
  2. # 4
Eric Merkel Accepted Answer
Posts: 15
Joined: 31.12.2014
0
Votes
Undo
I've 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
  1. 27.04.2016 16:04:48
  2. # 5
Bogdan Accepted Answer
Posts: 709
Joined: 26.06.2013
0
Votes
Undo
Eric, just place single line into .htaccess file:

PassengerEnabled off
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.