1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Local Apache Rewrite Log

Discussion in 'Apache' started by ForumJoiner, Apr 11, 2007.

  1. #1
    I have an hosting account and I am not able to access the log for Apache Rewrite module. I heard that is possible to use .htaccess to set the folder for the log to a local folder. I tried and Apache complained that "RewriteLog not allowed here". What can be done? I would like an example, please.
     
    ForumJoiner, Apr 11, 2007 IP
  2. kers

    kers Peon

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I am afraid that it is not possible - that directive must be set globally at server level or in the VirtualHost-container for the hostname. It is not possible to set ut using the .htaccess override rules :(

    If you ask nicely perhaps your host can include that for you as a custom setup?
     
    kers, Apr 11, 2007 IP
  3. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #3
    ForumJoiner, Apr 11, 2007 IP
  4. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #4
    As kers has pointed out, it's not possible unfortunately.

    Why do you need to log? If your rewrites aren't working, have you tried them out on your local development server where you do have root access?

    EDIT: The author of that article is wrong. See the documentation to check:
     
    rodney88, Apr 11, 2007 IP
  5. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #5
    I run Windows, but my host runs Linux.
    I run a version of Apache newer than my host's.
    There are also others reasons for me to want to see the logs on the deployment server, not on the testing server. It's not always possible for me to replicate locally the deployment server's behaviour.
     
    ForumJoiner, Apr 11, 2007 IP
  6. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #6
    As already mentioned, unless your host is willing to set up rewrite logging especially for you, you can't use it on your shared hosting.

    You can however use it locally, and unless you're using extremely complex rewriting, the difference in environment should be insignificant. Regardless, surely that's better than nothing...
     
    rodney88, Apr 11, 2007 IP
  7. ForumJoiner

    ForumJoiner Active Member

    Messages:
    762
    Likes Received:
    32
    Best Answers:
    0
    Trophy Points:
    83
    #7
    The host will open their office in 10 hours from now. I hope they'll help me.
     
    ForumJoiner, Apr 11, 2007 IP