SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Logs of mod_rewrited subdomains

    When mod_rewrite is used to redirect subdomains, there is the problem that the access logs get messed up, because the access to subdomain.domain.com and www.domain.com both are logged as "/".

    Is there a way to modify .htacess to have different log files for each domain?
    Or have the server to log the domain name in the log entry?

    By the way I have a dedicated, I have access to all resources.

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    oz,

    That's specified in the httpd.conf file where you setup your subdomains (<Virtual Host>).

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2001
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    but I have only one virtual host for my domain, and the subdomains are made with a mod_rewrite rule.

    Is it possible to have a log file for each subdomain?

  4. #4
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,650
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    ozni,

    Subdomains are NOT created by mod_rewrite but by DNS and setup within the httpd.conf file in the <Virtual Hosts> section. Yes, you can have log files for each domain and subdomain.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •