Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Apache directives to specific site

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
fedekrum
Posts: 49
Joined: Mon May 12, 2014 7:45 pm

Os: Ubuntu 15x
Web: apache + nginx
Apache directives to specific site
  • Quote

Post by fedekrum » Fri Jul 25, 2014 9:40 pm

A client is asking me how can he add some apache directives to his virtual site.
Here is what he needs to do:

Code: Select all

apt-get update && sudo apt-get install libapache2-mod-fastcgi
a2enmod actions fastcgi alias
/etc/init.d/apache2 restart
vi /etc/apache2/conf.d/php5-fpm.conf
<IfModule mod_fastcgi.c>
     AddHandler php5-fcgi .php
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
/etc/init.d/apache2 restart
How can I get this to work on his virtual site? I cant find the files he is talking about.

thanks
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: Apache directives to specific site
  • Quote

Post by imperio » Wed Jul 30, 2014 9:12 pm

Only administrator can change http virtual hosts of users
/home/user/conf/web/httpd.conf
Top

erldcrtz
Posts: 73
Joined: Tue Jun 10, 2014 6:16 am

Re: Apache directives to specific site
  • Quote

Post by erldcrtz » Thu Jul 31, 2014 9:07 pm

fedekrum wrote:A client is asking me how can he add some apache directives to his virtual site.
Here is what he needs to do:

Code: Select all

apt-get update && sudo apt-get install libapache2-mod-fastcgi
a2enmod actions fastcgi alias
/etc/init.d/apache2 restart
vi /etc/apache2/conf.d/php5-fpm.conf
<IfModule mod_fastcgi.c>
     AddHandler php5-fcgi .php
     Action php5-fcgi /php5-fcgi
     Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
     FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -host 127.0.0.1:9000 -pass-header Authorization
</IfModule>
/etc/init.d/apache2 restart
How can I get this to work on his virtual site? I cant find the files he is talking about.

thanks
that is sad... a client is asking you and you don't even know how to do it... what kind of business are you running?.. LOL
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password