Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Tutorial: How to setup Awstats for virtual hosts
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> Apache
View previous topic :: View next topic  
Author Message
kolatracks



Joined: 07 Jul 2003
Posts: 313
Location: UK

Posted: Fri Jul 11, 2003 10:26 am    Post subject: Tutorial: How to setup Awstats for virtual hosts  

Step 1:
Add the following lines to the bottom of your 'httpd.conf'
Code: #awstats config
Alias /awstats "C:/Apache2/htdocs/awstats"
<Directory "C:/Apache2/htdocs/awstats">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Step 2:
Copy
c:\apache2\htdocs\awstats\awstats.localhost.conf
to
c:\apache2\htdocs\awstats\awstats.www.yourdomain.com.conf

Step 3:
Open the file you just made and find the 3 following lines:
Code: LogFile="c:\Apache2\logs\access.log "
SiteDomain="localhost"
HostAliases="localhost 127.0.0.1 REGEX[^.*\.myserver\.com$]"
*They will not be together as above
and change them to
Code: LogFile="c:/apache2/logs/www.yourdomain.com-access.log"
SiteDomain="www.yourdomain.com"
HostAliases="www.yourdomain.com yourdomain.com 111.222.333.444"

"HostAliases" = your domain and IP
Repeat steps 2-3 for multiple domains
Back to top  
akuira



Joined: 01 Jun 2004
Posts: 5

Posted: Wed Jun 02, 2004 1:40 am    Post subject:  

I currently use DirectUpdate to update my Dynamic IP (external) and send it to zoneedit.com for updating... Since my IP does change every once and a while, is there something I can add to this setting to make it retrieve my IP from a site like http://dynamic.zoneedit.com/checkip.html ?
Back to top  
kolatracks



Joined: 07 Jul 2003
Posts: 313
Location: UK

Posted: Wed Jun 02, 2004 3:06 am    Post subject:  

You mean to get the dynamic ip in place of where I said to put your ip?
It's not really neccesary to have your ip in there, you can just put your domain.
Back to top  
wezacon



Joined: 22 Aug 2004
Posts: 8

Posted: Tue Aug 24, 2004 7:39 pm    Post subject: Stats not working  

Followed these steps but no result ...anyone got an idea?
Back to top  
onlyme



Joined: 15 Aug 2004
Posts: 4
Location: UK

Posted: Sun Sep 05, 2004 4:44 pm    Post subject:  

Look a bit further down for the post I made "Virtual Hosts - what worked for me" - it's very "step-by-step" and should have all bases covered.
Back to top  
Criminal



Joined: 28 Apr 2004
Posts: 72

Posted: Fri Mar 25, 2005 11:40 pm    Post subject:  

onlyme wrote: Look a bit further down for the post I made "Virtual Hosts - what worked for me" - it's very "step-by-step" and should have all bases covered.
I followed that, and i made a virtural host for demo.localhost
And i go and set awstats up using this tutorial, and i access awstats, and i get this:
Code: Error: Access to statistics is only allowed from an authenticated session to authenticated users.

Setup ('D:/apache2triad/htdocs/awstats/awstats.demo.localhost.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Back to top  
phpbbviet



Joined: 21 Jun 2005
Posts: 2

Posted: Tue Jun 21, 2005 7:29 am    Post subject:  

change
Code: #awstats config
Alias /awstats "C:/Apache2/htdocs/awstats"
<Directory "C:/Apache2/htdocs/awstats">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>

to

Code: #awstats config
Alias /awstats "C:/Apache2/htdocs/awstats"
<Directory "C:/Apache2/htdocs/awstats">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

try using .htaccess file in folder /awstats
Back to top  
skinny



Joined: 05 Mar 2006
Posts: 9

Posted: Sun Mar 05, 2006 3:45 pm    Post subject:  

is there a way to setup AWstats without authentication?
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> Apache
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group