![]() ![]() Rewrite ^/\$ \$scheme:///?config=example. Uwsgi_pass unix:/var/run/uwsgi/app/awstats/socket $ cat << EOF | sudo tee /etc/nginx/sites-available/ Prepare Nginx virtual host configuration ( in this example). Usage: (awstatsoptions) awstatsbuildstaticpagesoptions where awstatsoptions are any option known by AWStats. $ sudo unlink /etc/nginx/sites-enabled/default $ sudo apt-get install nginxĭisable default Nginx site. So in order to all statistic files could be formed, you must determine (or uncomment default) values for options in awstats config file. $ sudo ln -s /etc/uwsgi/apps-available/awstats.ini /etc/uwsgi/apps-enabled/ It seems that script doesn't replace Show config options with its default values. You can use htpasswd file or utilize the HTTP server to take care of the authentication process.Įnable application. You can try to use it to let it do all that is possible in AWStats setup. I have added basic authentication (user secret-user and password secret-password) to protect statistics. We used the RPM of AWStats and the default installer: rootwebserver awstats tools/ - AWStats awstatsconfigure 1.0 (build 1.6) (c) Laurent Destailleur - This tool will help you to configure AWStats to analyze statistics for one web server. Route = ^/ basicauth:awstats,secret-user:secret-password $ cat << EOF | sudo tee /etc/uwsgi/apps-available/awstats.ini ![]() $ sudo apt-get -no-install-recommends install uwsgiĭefine AWStats application. # allow to initiate update from browser an use lock file # show top menu (last update, reported period, filters, initiate update) This depends on the way you setup your web server and cgi directories. It's absolute or relative URL you must enter to run AWStats as a CGI. # Also, this file is not updated with each new upstream release. Run Webmin, go to the 'AWStats LogFile Analysis' menu. # different virtual servers, who want to reuse common parameters. Databasebreakday mean: summary file will create in daily basis: each day will have it own summary file :. ![]() Its mean: each month will have it own summary file :. You must be able to run perl scripts (.pl files) from command line and/or as CGI (Perl 5.007003 or higher required to run AWStats 6.9 or higher). Requirements: To use AWStats, you need the following requirements: Your server must log web access in a log file you can read. # This is particularly useful for users with several configs for Awstats read log file and create summary text file in monthly basis by default. AWStats has a XML Portable Application Description. # You can overrides config directives here. I am using global /etc/awstats/ override file to use HTML frames, display the top menu, and allow to initiate update process directly from the browser. I will leave it up to you to perform this step as it is specific to your setup. $ sudo apt-get install awstatsĬonfigure it according to your needs. An attacker may exploit this condition to execute commands remotely or disclose contents of files, subject to the privileges under which the web server operates. I will show you how to configure the AWStats web-interface using the uWSGI application server and Nginx HTTP server, which is a very simple and straightforward process. The remote version of this software fails to sanitize user-supplied input to the configdir parameter of the script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |