Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question about httpd.conf file

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello all! Firstly I feel very out of place posting here (Feel like I fit in
like a stripper would in a monastry) as I am a Windows user. But not for
much longer, as I'm shortly going to be using SlackWare.

Anyway, the reason I'm posting here is because my webserver space is on a
Linux based server, and I saw something on a webpage today saying you can
use the CustomLog command in the httpd.conf file. This will allow you (from
what I can tell) output either a file, or execute a script (CGI is the only
one that appeared to work. Can you use PHP?).

I despartly want to create my own personal log of what bandwith is being
used by a particual user. Now before people say just enable logs on your
server, that's allready done. I need to colate bandwidth info by running my
own script, thats a nessacity.

I know a little .htaccess and know I can make a file in a directory I want
to protect etc. Is it possible to make one of these files a directory, or do
I have to ask my webhoster if I can edit the main httpd.conf file? If anyone
knows of anymeans of me making a script get called when a image is accessed
could they please let me know.

I'm desperate to get something working!

Many thanks

Phil

 
Hi mate,

Firstly, don't feel out of place, I run a windows server and so do a lot of the other members on this forum..

You should be able to just create the htaccess without contacting your host, as long as they have it set up for you to use them. If not, contact them and ask them to allow htaccess by changing the AllowOverride option in the httpd.conf file.

As for the script being called when the image is shown, the best way I can think of this is to actually call the script and have that show the image instead.

I don't have more time to go into it just now, but if you need more help, just ask..

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top