index page grows in size with every hit

 
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions
View previous topic :: View next topic  
Author Message
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Mon Jul 03, 2006 4:53 pm    Post subject: index page grows in size with every hit Reply with quote

I am running 3 sites. Two of them work fine, but on the third one the index.htm grows in file size with every hit. When I check the HTML, it is listing the IP address, date and time of every hit on the site and therefore causing the index.htp page to increase in size. Here's an example of what gets added to the bottom of the HTML:

12.149.100.21 - - [02/Jul/2006:18:41:24 -0400] "GET /Buttons/ClassReadingList_Over.gif HTTP/1.1" 200 4405 "" "Mozilla/4.0 (compatible;)"
192.168.1.101 - - [02/Jul/2006:18:51:43 -0400] "GET / HTTP/1.1" 200 9210 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
192.168.1.101 - - [02/Jul/2006:18:51:43 -0400] "GET /animate.js HTTP/1.1" 304 0 "http://www.performersstudioworkshop.com/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"

This database keeps growing and growing to a point where the index.htm file starts loading slowly.

Does anyone have any ideas as to what's going on here?
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Mon Jul 03, 2006 6:15 pm    Post subject: Reply with quote

I fixed my own problem. I set up everything in ABYSS for this site the same way it is set up on my other two sites. It seems that I had it set up in a way that was allowing it to log every hit and posting it at the bottom of the index.htm file. PROBLEM SOLVED.
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Mon Jul 03, 2006 9:29 pm    Post subject: Reply with quote

Hi there, and welcome to the forums!

I'm curious how you got the raw logfile into your HTML page.

Could you please explain how this happened?
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Mon Jul 03, 2006 9:44 pm    Post subject: Reply with quote

pkSML wrote:
Hi there, and welcome to the forums!

I'm curious how you got the raw logfile into your HTML page.

Could you please explain how this happened?


He must have set the log file to be his index.html page. Only explanation.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 2:18 am    Post subject: Reply with quote

Well it seems that the way I had my ABYSS X2 web server set for this page allowed this. I had the log file in the console (Logging) set to htdocs . . . Index.htm. I also had the directory listing type set to "From Script". When I changed these, my problem went away.
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 2:25 am    Post subject: Reply with quote

Randy: I didn't see your response earlier, but you are absolutely right. I had a user accessable CGI file on my site and was told that I needed to do this to make it work. Bad advice. I live and learn. You could have saved me a lot of work if I had checked here first. Next time I run into a problem, I will check here first.
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 2:29 am    Post subject: Reply with quote

Andy:

Ooops, I'm sorry that I referred to you as Randy earlier. My bad.

Can I set up a separate log file under another name and set my log file to that? I'm new to "home based" web serving.
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 2:33 am    Post subject: Reply with quote

If you would like to visit my sites, they are:

www.MikeGuy.com
www.PerformersStudioWorkshop.com
www.TransportationSTARTUPS.com
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 3:03 am    Post subject: Reply with quote

Andy:

I need some website advice. If you visit www.PerformersStudioWorkshop.com you will note that I have a public side of the site and a Student (Password Protected [Java Script]) side of the site. The problem is that once I give a password to a student and they can get to the Student side of the site, they save the URL to their favorites and can link to the student side without going through the password.

Is there a way to totally protect the student side of the site so if you link directly to the URL you have to enter your password to gain access?
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Tue Jul 04, 2006 4:49 am    Post subject: Reply with quote

http://aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-AC
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Tue Jul 04, 2006 5:03 am    Post subject: Reply with quote

What if I don't have the IP address of everyone who has a Password?
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Tue Jul 04, 2006 7:22 am    Post subject: Reply with quote

You dont need their address; You specify the directory you want access controlled and then specify which Users or User Group that you want available to access that directory.

The user thing is here:
http://aprelium.com/data/doc/2/abyssws-win-doc-html/hosts-configuration.html#HOSTS-UG
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Wed Jul 05, 2006 12:58 am    Post subject: Password Protected Reply with quote

Tim:

Thanks. I now have the student side of the site totally password protected.

Next Question: Is it possible to monitor which students actually log on to the student side of the site? I would like to monitor this by username rather than by IP address. Thanks
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Wed Jul 05, 2006 1:41 am    Post subject: Reply with quote

This one's easy.

Here's a snippet from my logfile when I'm visiting a password-protected page. Stephen is my username.

Quote:
127.0.0.1 - Stephen [04/Jul/2006:20:39:57 -0400] "GET /cake/index.htm HTTP/1.1" 200 372 "" "Mozilla/4.0 (compatible; MSIE 6.0; ...)"


P.S. If you call make a mistake in your post, you can edit it. When you're logged in, click edit at the top-right of your post.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Wed Jul 05, 2006 1:59 am    Post subject: Reply with quote

Quick question...

Do you have Perl and/or PHP installed for your server?
----------------------
This is post 100 for me!
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Wed Jul 05, 2006 2:29 am    Post subject: Reply with quote

pk:

I guess I need to read "ABYSS For The Complete Dummy" but I'm not even sure where I can find the logfile on my computer. I do have Perl and PHP both installed. What file is the snippet you posted from? And where might I find a similar file on my server?
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Wed Jul 05, 2006 3:05 am    Post subject: Reply with quote

This is easy to find. It's probably named access.log. You can search your hard drive for it.

I'm assuming you keep three separate logfiles for your three different sites. Maybe they're all conglomerated into one.
Either way, here's how you find out. Goto the console: http://127.0.0.1:9999/.
Click "configure" on one of the hosts in the table. Click on the option named "Logging". Then you'll see "Log file".

Did this help you find it?

BTW, I'll be back to the forums probably on Thursday night. Someone else should be able to help in the meantime.
_________________
Stephen
Need a LitlURL?


http://CodeBin.yi.org
Back to top View user's profile Send private message Visit poster's website
mikeguy
-


Joined: 03 Jul 2006
Posts: 11
Location: Tampa, Florida, USA

PostPosted: Wed Jul 05, 2006 3:19 am    Post subject: Reply with quote

pk:

I got it and it works. Thanks for all of your help.
_________________
Mike Guy
Back to top View user's profile Send private message Visit poster's website
Tom Chapman
-


Joined: 09 Jul 2005
Posts: 933
Location: Australia

PostPosted: Wed Jul 05, 2006 7:27 am    Post subject: Reply with quote

mikeguy, please refrain from quadruple posting, it's quite fustrating and annoying! ;P

Your sites are looking good! Keep up the good work! :)
Back to top View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Off Topic Discussions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group