New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why override a lot of existing nginx files??? #27
Comments
Yes you shoulf backup your old nginx directory. mv /etc/nginx /etc/nginx.old I fail to see how FCGI is unrelated to piwik, you'll have to deal with it. It's how PHP communicates with nginx. |
everything in the universe is related ... but piwik can run just as well on one worker_process than 4 https://github.com/perusio/piwik-nginx/blob/master/nginx.conf#L3 just to give you another example ... Just my opinion the configuration should limit itself to the absolute neccesities, further can make recommendations but not enforce/override them. How will i know which setting is absolutely neccesary for piwik to run? |
This is my problem as well. From the configuration in this repository, it's really hard to find out what is actually needed to run Piwik under a subpath e.g. "example.com/piwik/index.php". Piwik isn't the only software that Nginx is proxying on my machine, so I'd just prefer to have one "/etc/nginx/sites-available/piwik.nginx.conf" file, alongside other service configuration files. Did you @flip111 manage to create a simple Piwik configuration? |
@ttiurani no sorry, my piwik installation is broken ever since this post (and before) and did not get around to fixing it ... |
I have multiple website behind my nginx server and cloning the whole nginx folder and getting rid of the existing settings is lot more problematic. I agree with @flip111 that first provide us minimum configuration for running it on nginx and then this can be used for advance. Currently I am stuck with the installation and not able to find get arounds. |
@anupamapanchal Here's a flat file I pieced together - https://gist.github.com/xenithorb/aa4252d1a43dc7c6660091df6189a948 |
In case anyone is interested, I have been successfully using the following
With this kind of forwarding in my main nginx.conf:
Unfortunately I can't be the one who would maintain anything like this: this comes "as it", just in case this could help someone. |
@ttiurani is this working with nginx virtual hosts, ie, multiple sites on the same host with multiple nginx configs? I, too like @anupamapanchal cannot simply blow away other configs for piwik just to ditch google analytics. |
@clessley yes, the above does work with multiple sites on same host. Don't quite remember the details of everything there unfortunately. |
I dumped the most recent piwik install folder into one of my virtual sites' html directories. i then created a database/user and tried the installer; after installing a single required php dependency (which was flagged in the pre-install requirements list) install ran ok. i never used any type of nginx configuration at all as suggested. analytics working. |
git clone https://github.com/perusio/piwik-nginx.git /etc/nginx
seems a bit crazy to advice to replace the current
nginx.conf
with the one from the repo just like that ...yes ok you make a backup with
nginx.old
which should then be deleted later on??Is there a configuration available that concentrate on just making piwik work and not mess around with all the fastcgi configuration and other not directly related piwik configs ??
The text was updated successfully, but these errors were encountered: