Welcome! Log In Create A New Profile

Advanced

Re: rpm packaging a web application software to run on nginx

Styopa Semenukha
February 22, 2014 10:26AM
Hello Doruk,

Package manager should not undertake creating _usable_ configuration, this is
configuration manager prerogative. The PM must create a sample configuration
("Welcome to Nginx").

I would declare your conf file as %doc, then rpmbuild will put it to
/usr/share/doc/%{name}-%{version}/

Experienced users will see it and fit to their needs. Beginners will ignore it
and copy-paste configs from forums anyway :)

On Saturday, February 22, 2014 03:55:17 PM Doruk Fisek wrote:
> Hi,
>
> I'm trying to add Nginx support to the LDAP Account Manager RPM
> package.
>
> In Apache, the package adds a /etc/httpd/conf.d/lam.apache.conf that
> has a simple Alias directive:
>
> Alias /lam /usr/share/ldap-account-manager
>
> However when I try to do that with a Location directive
> in /etc/nginx/conf.d/lam.nginx.conf, I get:
>
> "location directive is not allowed here"
>
> I have to put the Location directive inside a server block, which
> makes the config file not usable out of the box (the user has to
> manually place it in all server blocks, including the default one).
>
> Since my Apache way of thinking isn't working in Nginx, my question
> is: How do I prepare an RPM package of a web application, which when
> installed, will be up and running in Nginx without any manual editing
> on the user's part?
>
> Doruk
>
> --
> Özgür Yazılım A.Ş. ~ #
> http://www.ozguryazilim.com.tr
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
--
Sincerely yours,
Styopa Semenukha.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rpm packaging a web application software to run on nginx

Doruk Fisek February 22, 2014 08:58AM

Re: rpm packaging a web application software to run on nginx

Styopa Semenukha February 22, 2014 10:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 211
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