Welcome! Log In Create A New Profile

Advanced

Re: var/www

Rob Schultz
December 31, 2009 06:36PM
Hi Paul,
> A quick side question - do you know whether I can run nginx as well as
> apache2 on the server? nginx would handle all ports except eBox
> administration. Just a thought - not important really, but I am not sure
> whether eBox needs apache2.
You can have apache listen on a separate port then apache2 and either access apache directly via the alternate port or you can have nginx proxy to the apache port so you can use standard access.

> The web server will have two domains to host from the same fixed IP, and
> needs SSL for one of them.
You can have multiple servers on 1 ip address easily. http://wiki.nginx.org/NginxHttpCoreModule#server there are limitations with SSL and ip addresses SNI http://en.wikipedia.org/wiki/Server_Name_Indication is needed if you want multiple hosts with SSL.

> The trial computer now has all apache2 files taken off, and nginx is now
> the web server. One of the web sites will be a rails site.
>
> The rails site on the trial computer is at /home/paul/sites/my_app/, and
> has all the usual sub-directories created by rails. I don't know where
> to put the rails files on the web server at present.
You can put them anywhere you want on the server as long as you point it to the location of your rails app.
I personally use a structure like
/var/www/domain.com/ to hold the website. and then just put the roots to the proper location. if its a standard website i normally create a htdocs folder for all the web files. If its rails app i just use the rails structure and put everything in public etc etc.

>
> There seem to be 4 files with configuration for gninx it them:
>
> /var/nginx/conf/nginx.conf (this one I changed - probably the wrong
> one!)
> /etc/nginx/nginx.conf (no changed made since installation)
> /etc/nginx/sites-available/default (no changed made since installation)
> /etc/nginx/sites-enabled/default (no changed made since installation)
Using Debain 5.0 the config files are /etc/nginx/nginx.conf and probably the sites-availabe and sites-enabled ones. I am sure Ubuntu has the same structure.

> (virtual host, ssl and php are # out at present - I take it that is
> default)
http://wiki.nginx.org is good resource for finding example configuration files and all the modules.

V/r,
Rob Schultz
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

var/www

Paul Jessup December 29, 2009 07:06PM

Re: var/www

Rob Schultz December 29, 2009 07:08PM

Re: var/www

Paul Jessup December 29, 2009 07:20PM

Re: var/www

Rob Schultz December 29, 2009 07:36PM

Re: var/www

Paul Jessup December 30, 2009 04:46AM

Re: var/www

Rob Schultz December 31, 2009 06:36PM

Re: var/www

Paul Jessup January 01, 2010 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 149
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready