Forum Replies Created
-
AuthorPosts
-
August 16, 2005 at 8:51 pm in reply to: rotatelog on OS X Server (Archive every 7 days)(awstats makes my head ache) #362821
bubbleboy
ParticipantMy head is aching and about to explode.
I keep getting an error when I try to do an awstats update that says I don’t have the right log file type defined. I’ve tried just using combined but OSX’s combined format doesn’t seem to match. I tried just copying and pasting the log format string that shows up in the Server Admin (then escaping the quotes) and it doesn’t seem to like that either.
Anyone been through this and have a fix?Your AWStats LogFormat parameter is:
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
This means each line in your web server log file need to have the following personalized log format:
%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"
And this is an example of records AWStats found in your log file (the record number 50 in your log):
24.8.179.250 – – [13/Aug/2005:04:58:50 -0600] "GET /surveys/labmembers/ HTTP/1.0" 200 639bubbleboy
ParticipantWe started using awstats for a while (after figuring out the log rotation timing, which about killed us). Then we had some security scares and some were pointing to awstats.
We also would like to be able to archive the figures in a mysql database (or ?). With the logs in OSX Server sticking around for only 2 weeks (again, we could probably make a workaround, but are willing to pay for a package instead of trying to figure this out), we’d love to be able to compare stats from 6 months ago or even last year’s.
Anyone have suggestions? I am finding lots of software but it’s usually Windoze.
bubbleboy
ParticipantI found this on the apple server message boards.
1. Create your “virtual.cf” file. I did this using Terminal. Open Terminal and navigate to Postfix (cd etc/postfix).
Next open pico from the Terminal prompt. Type: sudo pico
You will be prompted for your password and once you enter it, Pico will be open.
Now set up your alias map.
#website1.com
[email protected] info_website1
#website2.com
[email protected] info_website2
The “#” should appear before anything that you want to comment. I comment the domain name so that I can keep everything separate.
The email addresses tell Postfix where to send everything.
“[email protected]” will be sent to a user named “info_website1” and the same thing with “info@website2.”
Now then save the file. Control-O Save the file as “virtual.cf. Then you can exit Pico.
2. Now you are ready to tell Postfix where to look for the virtual.cf file.
You will need to access the “main.cf” file as the root. Type sudo pico main.cf. You will probably have to re-enter your password.
Add this line to the main.cf file. I did it on a line just before “Trust and Relay Control.”
virtual_alias_maps = hash:/etc/postfix/virtual.cf
Save your main.cf and exit pico. Control-O and then Control-X
3. Now then you need to do two more commands.
sudo postfix reload
sudo postmap /etc/postfix/virtual.cf
This reloads Postfix with you mapping.
4. Make sure that you have your users setup in “Workgroup Manager”
Enter the user name: info website1
then in the short name make it info_website1
Finish with seting up the mail privileges and saving.bubbleboy
ParticipantThanks honestpuck.
Yikes, I didn’t buy OSXServer so I could become a postfix guru. I would have stuck with X.
How about something a little simpler anyone?
-
AuthorPosts
Recent Comments