1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

my vhost.conf seems to be ignored ...

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by kadoudal, Jul 23, 2011.

  1. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    Debian 6 / Plesk 10.2 (brand new installation..)

    I have a domain mysportacademy.com.
    As I am deploying a Rails app w Passenger ( Apache mod_rails) , I created a vhost.conf in the directory /var/www/vhosts/mysportacademy.com/conf

    ServerName mysportacademy.com
    DocumentRoot /var/www/vhosts/mysportacademy.com/rails/rapsberry/current/public
    RailsEnv "production"
    <Directory "/var/www/vhosts/mysportacademy.com/rails/rapsberry/current/public">
    AllowOverride All
    Options Indexes FollowSymLinks -MultiViews
    </Directory>

    then I run :
    /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain mysportacademy.com
    apache2ctl configtest
    /etc/init.d/apache2 restart

    no complain ...

    this is the standard usage ( I have many Rails app running this way on another server w Debian5/Plesk 10.1)

    Passenger is running ( checked in console w ps aux ) and should start the application ... but it seems that this vhost.conf is not read at all ... which doesn't trigger Passenger

    going to the domain url ... http://www.mysportacademy.com leads to the standard httpdocs Plesk index.html

    what did I miss ?
     
  2. SalamiC

    SalamiC New Pleskian

    17
     
    Joined:
    Aug 16, 2010
    Messages:
    15
    Likes Received:
    0
    Location:
    Portugal
    On CentOS 5.6 and Plesk 10.3 after update the same!

    hi all,

    I have the same issue! I got a new server with CentOS 5.5 and Plesk 10.2 on it and the open_basedir directive as described in this article worked; I tested it.

    Then I updated to Plesk 10.3 and CentOS 5.6 and now it's not working any more.

    After creating and uploading the vhost.conf file to the folder /var/www/vhosts/domain.tld/conf I run the /usr/local/psa/admin/sbin/httpdmng --reconfigure-all command and restarting the apache demon either by hand or via cp a new file in the form of 123456.123456_httpd.include is generated. But when I open the file, there are 4 open_basedir entries but none of them contains my added folder.

    Any ideas?

    @kadoudal - Have you checked if the file (123456.123456_httpd.include) is being created in the folder /var/www/vhosts/mysportacademy.com/conf? And it contains your directive?

    Salami Charly
     
  3. kadoudal

    kadoudal Regular Pleskian

    27
    23%
    Joined:
    Nov 20, 2007
    Messages:
    244
    Likes Received:
    0
    [SOLVED] my vhost.conf seems to be ignored ..

    Hi Charly

    I wrote some explicit mistakes in the vhost.conf to check if it was read .. and it was , so the issue was not with Plesk,

    but rather with the Rails/RVM/Passenger environment built on this new Debian 6 server ... ( the other was running well
    my mistake was trying to 'mimic' the Debian 5 install ...

    I re-generated the Ruby, Rails 3, RVM + Passenger (mod_rails) environment
    if anyone is interested , I described the process here : https://gist.github.com/1102852

    hope it will help someone...
     
Loading...