Results 1 to 7 of 7

Thread: .htaccess file in the sugar root

  1. #1
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default .htaccess file in the sugar root

    Hi,

    This file is doing nothing for my CRM. Any user can via the web browser enter my http://crmurl/sugarcrm.log and they can see my log. I have all the correct permission etc. on all my files and folders, am i missing something to get this to work.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  2. #2
    kuske's Avatar
    kuske is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Germany
    Posts
    2,597

    Default Re: .htaccess file in the sugar root

    Which webserver do you use? Apache?
    Only the Apache Webserver uses .htaccess settings.
    Harald Kuske
    Pre-Sales Engineer Central Europe

    SUGARCRM Deutschland GmbH
    Erika-Mann-Str. 53, 80636 Munich, Germany
    Email: hkuske@sugarcrm.com
    Home: http://www.sugarcrm.com


  3. #3
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: .htaccess file in the sugar root

    Hi,

    Yes I have an Apache server, but it the .htaccess in Sugar Root doesn't redirect anything, is there another setting I must configure in Apache for this to work.

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  4. #4
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: .htaccess file in the sugar root

    * .htaccess files provide a number of different ways to restrict documents:
    o by accessor host address
    o by browser type
    o by accessor HTTP Basic credentials
    o by phase of moon...
    * Characterology campus-only access:

    order deny,allow
    deny from all
    allow from 130.194 characterology.com

  5. #5
    kurt.maderal is offline Senior Member
    Join Date
    Jun 2009
    Posts
    66

    Smile Re: .htaccess file in the sugar root

    Hi,

    Does the line below doesn't work in your .htaccess file??

    RedirectMatch /sugarcrm.log.* http://test.test.com/log_file_restricted.html



  6. #6
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: .htaccess file in the sugar root

    Hi,

    I type in http://sugarurl/crm/dev/sugarcrm.log and I get the log file in my browser

    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

  7. #7
    chrislynch8's Avatar
    chrislynch8 is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    Cork, Ireland
    Posts
    747

    Default Re: .htaccess file in the sugar root

    I found my issue.

    In my Site Available I had AllowOveride NONE and I changed it to ALL and now my .htaccess is working. My User now get an error Access Restricted when trying to access log file and other directives in the .htaccess file.


    Rgds
    Chris
    Linkedin Profile:Chris Lynch

    FDC IT Solutions
    FDC House
    Wellington Road
    Cork
    Ireland

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with .htaccess file
    By mikesolomon in forum Developer Help
    Replies: 0
    Last Post: 2009-05-05, 04:16 PM
  2. Cannot write to the .htaccess file
    By ramv in forum Help
    Replies: 2
    Last Post: 2008-08-22, 05:40 AM
  3. How should the .htaccess file look
    By carolus47 in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-12-31, 05:45 PM
  4. Cannot write to the .htaccess file
    By cymro123 in forum Help
    Replies: 1
    Last Post: 2006-07-07, 04:30 PM
  5. Replies: 3
    Last Post: 2005-09-28, 03:54 PM

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
  •