Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have plesk 11.0 based manage domain which i need to add a openfire port to connect to be hidden as below

   ProxyPass /xmpp-httpbind http://xxx.com:5280/http-bind
   ProxyPassReverse /xmpp-httpbind http://xxx.com:5280/http-bind

I know in plesk they say donot edit a httpd.conf but use the folllowing

/var/www/vhosts/xxx.com/conf/vhost.conf

but i am confused as there is no file in that location for me to edit, and worry is what is the syntax to add this variables ? i.e will adding the following didnot work which is based on Cpanel systax for the apache config file

I am using Centos 6.3 and Nginx as a reverse proxy, (all config by plesk only)

> <VirtualHost 199.189:8081>
>     <IfModule mod_userdir.c>
>         UserDir disabled
>         UserDir enabled liya
>     </IfModule>
>     ServerName xxx.com
>     ServerAlias www.xxx.com
>     DocumentRoot /home/liya/public_html
>     ServerAdmin webmaster@xxx.com
>     UseCanonicalName Off
>     ProxyPass /xmpp-httpbind http://xxx.com:5280/http-bind
>     ProxyPassReverse /xmpp-httpbind http://xxx.com:5280/http-bind
>     ProxyRequests Off
>     #CustomLog /usr/local/apache/domlogs/xxx.com combined
>     #CustomLog /usr/local/apache/domlogs/xxx.com-bytes_log "%{%s}t %I .\n%{%s}t %O ."
>     ## User liya # Needed for Cpanel::ApacheConf
>     <IfModule mod_suphp.c>
>         suPHP_UserGroup liya liya
>     </IfModule>
>     <IfModule concurrent_php.c>
>         php4_admin_value open_basedir "/home/liya/public_html:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
>         php5_admin_value open_basedir "/home/liya/public_html:/usr/lib/php:/usr/local/lib/php:/tmp"
>     </IfModule>
>     <IfModule !concurrent_php.c>
>         <IfModule mod_php4.c>
>             php_admin_value open_basedir "/home/liya/public_html:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
>         </IfModule>
>         <IfModule mod_php5.c>
>             php_admin_value open_basedir "/home/liya/public_html:/usr/lib/php:/usr/local/lib/php:/tmp"
>         </IfModule>
>         <IfModule sapi_apache2.c>
>             php_admin_value open_basedir "/home/liya/public_html:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp"
>         </IfModule>
>     </IfModule>
>     <IfModule !mod_disable_suexec.c>
>         <IfModule !mod_ruid2.c>
>             SuexecUserGroup liya liya
>     <IfModule !mod_disable_suexec.c>
>         <IfModule !mod_ruid2.c>
>             SuexecUserGroup liya liya
>         </IfModule>
>     </IfModule>
>     <IfModule mod_ruid2.c>
>         RUidGid liya liya
>     </IfModule>
>     ScriptAlias /cgi-bin/ /home/liya/public_html/cgi-bin/
> 
> 
>     # To customize this VirtualHost use an include file at the following location
>     # Include "/usr/local/apache/conf/userdata/std/2/liya/xxx.com/*.conf"
> 
> </VirtualHost>
share|improve this question

1 Answer 1

/var/www/vhosts/xxx.com/conf/vhost.conf file does not exists by default.

If this file exists, on next domain web servers config re-generation(or after /usr/local/psa/admin/bin/httpdmng --reconfigure-all) this file will be included as general apache include file(so there is no specific format/syntax).

Try to add

<VirtualHost <your IP here>:8081>

ProxyPass /xmpp-httpbind http://xxx.com:5280/http-bind
ProxyPassReverse /xmpp-httpbind http://xxx.com:5280/http-bind

</VirtualHost>

to vhost.conf

share|improve this answer
    
Ok, but without knowing the original configuration for the site how do i know what to put there, ie. may be already this sites virtual host in the httpd.conf of the plesk ? (i dont know where is the plesk actual httpd.conf where the configurations of the sites are sitting in) –  user1179459 May 24 '13 at 12:27
    
i've update answer. Maybe you just need to add your config file in apache configs include dir(/etc/apache2/conf.d/ or /etc/httpd/conf.d/) - in this case your config will be always included, even httpd.conf will be overwritten. –  Oleg Neumyvakin May 25 '13 at 15:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.