![]() I am going to work on a custom function to take over this within the theme I have made for this client, to handle any changes to this files during Wordpress updates. htaccess file, should one need to edit any of these yourself, simply edit where you need the directives to sit in the sequence) (The method continues for a lot more lines before completing the Wordpress block of commands within the. # The following line is the line we added With password protection in place, it results in a 404 error when attempting to view the AWStats.Īfter a lot of trial and error, we discovered that it's down to the Wordpress htaccess rules.Īdjusting them with the following: # BEGIN WordPress Note: Please password protect the /cgi-bin folder so that only authorized users can access it (found under cPanel -> Security -> Password Protect Directories). Everything working fine until we apply password protection through the htaccess file. have done this click save, and your awstats folder will be password protected. Rewrite ^/\$ \$scheme:///?config=example.I am running (for a client) a Wordpress site on a CentOS/WHM/Apache 2.2 server, and within a subdirectory we have AWStats installed. On the DirectAdmin homepage, you need to click on the Password Protected. 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). $ sudo unlink /etc/nginx/sites-enabled/default ![]() $ sudo apt-get install nginxĭisable default Nginx site. $ sudo ln -s /etc/uwsgi/apps-available/awstats.ini /etc/uwsgi/apps-enabled/ You can use htpasswd file or utilize the HTTP server to take care of the authentication process.Įnable application. I have added basic authentication (user secret-user and password secret-password) to protect statistics. Route = ^/ basicauth:awstats,secret-user:secret-password $ cat << EOF | sudo tee /etc/uwsgi/apps-available/awstats.ini That is what you get for free stat program. $ sudo apt-get -no-install-recommends install uwsgiĭefine AWStats application. FAQ-ABO100 : WHICH SERVER LOG FILES OR OS ARE SUPPORTED AWStats can works with : All web server able to write log file with a combined log format (XLF/ELF) like Apache, a common log format (CLF) like Apache or Squid, a W3C log format like IIS 5.0 or higher, or any other log format that contains all information AWStats expect to find. Password protected AWStats Ive searched for other posts but none with an answer. # allow to initiate update from browser an use lock file # show top menu (last update, reported period, filters, initiate update) # Also, this file is not updated with each new upstream release. # different virtual servers, who want to reuse common parameters. # This is particularly useful for users with several configs for # 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. 5tarteo wizard Video TLtcrlals C range Password Find Mail Frequently Accessed Areas Password Protect Directories Perl Modules Awstats phpMyAdmin Cron. $ sudo apt-get install awstatsĬonfigure it according to your needs. 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.
0 Comments
Leave a Reply. |