Posted by psegarel on March 18, 2012 at 7:01am
Is it possible to run non Drupal sites within/alongside a Barracuda install?
Use case:
I would like to setup an ad server for a couple of Drupal sites.
My current solution is to use OpenX Source and I'd like to avoid setting a specific server just for this application.
Coud I possibly create a specific folder for non Drupal sites, how would I point to it? Generally , is it possible and if yes, how would you go about it?
Aside from OpenX, ideal solution would be to have a Drupal ad server distribution, surprisingly I haven't found many Drupal ready solutions for serving ads.
Comments
Hi Patrick, I'm currently
Hi Patrick,
I'm currently running BOA, a wiki and a project management application (Redmine) with no problems. I've added a vhost file at the following folder:
/var/aegir/config/server_master/nginx/vhost.d/
in my case I've added a wiki, so:
/var/aegir/config/server_master/nginx/vhost.d/wiki.mysite.net
Cheers,
Excellent! Thanks for putting
Excellent! Thanks for putting me on the right track!
Kinda overlooked that one!
The good example is how the
The good example is how the Chive or Collectd is installed by default in Barracuda. Yes, it is recommended to add your custom vhosts in /var/aegir/config/server_master/nginx/vhost.d/* and to use /var/www/* directory tree for your non-Drupal apps. You may need to use modified includes for Nginx config. Here are two examples, one for Wordpress and another for static site with some PHP code: http://drupal.org/node/1416798#comment-5514218
php download instead of executed
I'm using the config file https://gist.github.com/BrianGilbert/6227186, for a static+PHP site, but the browser try to download php scripts instead of executing them, the vhost config file (/var/aegir/config/server_master/nginx/vhost.d/www.sediciweb.it is the following:
server {include /var/aegir/config/includes/fastcgi_params.conf;
limit_conn limreq 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
listen *:80;
server_name www.sediciweb.it sediciweb.it;
index index.html index.php;
root /var/www/www.sediciweb.it;
}
any clue?
Daniele Sibaud
Tourtools - Dritti al web
Tourtools website
sorry
I wasn't including the above config file instead of fastcgi_params.conf, so my code now is:
server {include /var/aegir/config/includes/nginx_static_include.conf;
limit_conn limreq 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
listen *:80;
server_name www.sediciweb.it sediciweb.it;
index index.html index.php;
root /var/www/www.sediciweb.it;
}
and it works better ;)
Daniele Sibaud
Tourtools - Dritti al web
Tourtools website
yey!!
Hi Grace,
thank you for the link, I've spend the whole weekend trying to make Redmine works with BOA and I learnt by the hard way: breaking everything over and over! but the good thing is now I know a lot more about Nginx, Thin, redmine, and of course BOA.
Do you think is would be possible to manage custom vhosts? maybe with some parts of the BOA script?
Thanks
Making Ruby run on BOA
Alejandro,
I see that you managed to make BOA serve Ruby pages in order to have Redmine running.
Can you help community avoid going the same route (breaking servers) and explain how did you make it?
Maybe include various
configfiles on some gist or pastebin?This thing would go as far as my needs may go with BOA :))
_______________
Use Mac.
Mladen Đurić
Web Development.
Alejandro
We will see what can we do. There is a feature request in the queue already: http://drupal.org/node/1437404
OpenX source eh..
Hi Patrick,
I'm in a project and eventually I will have to deploy ads in drupal/BOA, so can you tell us why did you choose OpenX Source?
And also Could you share with us your progress about this topic?
thanks!
OpenX
Alejandro,
When I started to look for ad serving solutions, I didn't find many alternatives to OpenX. OpenX had the community and there was module support, so I opted for that solution.
I installed it on a small news site and it worked well. The admin interface was very clear & campaigns easy to manage.
Recently, I found this discussion
http://groups.drupal.org/node/18139
... it seems that the landscape hasn't changed that much.
Except maybe for
http://orbitopenadserver.com/how-it-works/for-drupal.html
which I haven't yet tried.
Clearly, I would have favored a Drupal solution.
I'm currently updating a news site that uses the Ad module and I really wanted to decouple the ad serving from the rest of the site. One potential solution could have been to dedicate a Drupal instance to remotely serve ads, but the Ad module seems to lack support.
I found this blog post though
http://geekery.davidherron.com/2009/12/configuring-drupal-to-be-ad-serve...
OpenX installs using the "simple" include.conf file
I am using openx on latest BOA 2.0.4:
Create the zone files for the domain you want to run openx (OK to use webmin for this) - make sure the dns for that domain resolves to your server before continuing
then create a folder called /var/www/domain.com and upload your extracted openx to it
create a domain.com vhost file and use the nginx_simple_include.conf in it;
and put it in /data/disk/o1 (or whatever you named your octopus instance) /config/server_master/nginx/vhost.d/
restart nginx
this way you can serve ads to all the sites on your BOA server with no bandwidth charges - served locally.
Then proceed to your openx installation (you should have a preconfigured database, db user and password for your openx instance).
When I installed it, I couldn't get the openx web install script to start in the browser, and had to restart the server, not just nginx, to get it to appear.
Rather than placing the nginx
Rather than placing the nginx conf file in the o1... folder, it may be better in the /etc/nginx/domains.included folder.
This is a default location for these files AND will create a separation between BOA and your files.
Not working for me on debian squeeze, yet
I'm running debian and don't have that folder. In /etc/nginx/ I have a sites-available folder; So on another domain I put the same "vhost" or conf file in there referencing nginx_simple_include.conf, and created a symlink to a newly created folder /etc/nginx/sites-enabled, for it. However I cannot get openx to install there.
I get error messages trying nginx_static_include.conf - "invalid number of arguments for location on line 26" - but won't post it as a bug report until I understand beter what BOA's intention is with running multiple instances of php-fpm with different port numbers or not.
I wonder if it is a problem with the 2 different versions of fpm I find on my BOA install: php5-fpm and php53-fpm - both of which can't listen on port 9090. I wonder if one of those fpm's should be set to run on port 9000, and if so, which one?
That is, is the idea for BOA to run the Octopus sites on one php-fpm on one port (which ones? I'm guesssing php53-fpm on port 9090) and non-drupal non-octopus sites on a different php-fpm process with a different port?
HAve you gotten non-drupal domains to run by puting heir vhost or conf file where you indicated? And if so, on which os, please?