Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
htaccess path conventions
Old 03-30-2009, 05:23 PM htaccess path conventions
Junior Talker

Posts: 1
Name: john parsons
Trades: 0
I have protected a directory successfully using htaccess. But am very unsure as to the path naming conventions.

I am using an Apache server on a local machine for developement and testing (windows vista home premium), set up as directed with no problems.

But I cannot make head nor tail of the paths given in tutorials and help references such as these:

AuthUserFile /usr/local/you/safedir/.htpasswd

or:

ErrorDocument 401 /errors/authreqd.html
What does that first slash represent, please don't tell me root this or that but give me a path, my document root is:

C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/

so what is "usr" or "local", and where does "/errors/" spring from? I welcome any help.
alpina is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-31-2009, 02:08 PM Achat de viagra en France avec livraison
Junior Talker

Posts: 1
Trades: 0
viagra en ligne! viagra en ligne. viagra generique Acheter du viagra en ligne =] prix du viagra
praineeva is offline
Reply With Quote
View Public Profile
 
Old 04-01-2009, 07:36 PM pewter charms wholesale
Junior Talker

Posts: 1
Location: wedding band white gold pave filigree
Trades: 0
http://www.indianpad.com/user/download-music remak http://www.indianpad.com/user/mensonman nelul http://www.indianpad.com/user/flotsbrend pudur http://www.indianpad.com/user/polson pusol http://www.indianpad.com/user/gremson penud http://guide2games.info/ namap http://hardware-portal.info/
__________________

Please login or register to view this content. Registration is FREE
arnette watches
Please login or register to view this content. Registration is FREE
and
Please login or register to view this content. Registration is FREE
noiviftiminna is offline
Reply With Quote
View Public Profile Visit noiviftiminna's homepage!
 
Old 04-02-2009, 03:42 PM acheter viagra generique
Junior Talker

Posts: 2
Trades: 0
viagra :-) Les prix les plus bas . commander viagra en ligne Acheter du viagra en ligne ;-) viagra online
wemeentiche is offline
Reply With Quote
View Public Profile
 
Old 04-02-2009, 03:57 PM acheter viagra canada bon marche
Junior Talker

Posts: 2
Trades: 0
acheter viagra ! Les prix les plus bas . viagra pharmacie Bon Marche viagra 8))) commander viagra en ligne
wemeentiche is offline
Reply With Quote
View Public Profile
 
Old 04-07-2009, 10:13 AM generique pharmacie
Junior Talker

Posts: 3
Trades: 0
acheter viagra ! http://www.medecinegen-creteil.net/M...d=646&course=1 viagra en ligne. viagra a vendre citrate de sildenafil bon marche Acheter du viagra en ligne viagra online
tenioutwammon is offline
Reply With Quote
View Public Profile
 
Old 04-07-2009, 01:24 PM viagra belgique
Junior Talker

Posts: 3
Trades: 0
viagra ! http://www.medecinegen-creteil.net/M...d=646&course=1 viagra en ligne. acheter viagra canada bon marche Achat viagra en ligne dans notre pharmacie. ;-] acheter votre viagra canada
tenioutwammon is offline
Reply With Quote
View Public Profile
 
Old 04-08-2009, 02:52 AM Autocad discount buy online
Banned

Posts: 1
Trades: 0
Catch good discounted Software right now. OEMS ARE AVAILABLE ON ANY EUROPEAN LANGUAGES - English, French, Italian, Spanish, German Sensation! ADOBE CS4 ALREADY AVALIBLE PLEASE CHECK PRICES AT OUR STORE!-Windows Vista Ultimate - $79.95 Windows XP Pro With SP2 - $59.95 Office Enterprise 2007 - $79.95 Adobe Creative Suite 3 Master Collection - $299.95 Adobe Acrobat Pro 8 - $79.95 Adobe Photoshop CS3 Extended - $99.95 AutoCAD 2008 - $149.95 Also we have so much soft for All Macs: Microsoft Office for Apple Mac - $79.96 Adobe Acrobat 7 Professional for Apple Macintosh - $79.96 Adobe Creative Suite 2 Premium for MacOS X - $199.96 Macromedia Dreamweaver 8 for MACINTOSH - $79.96 Adobe Photoshop CS2 for MAC - $79.96 To get full list of the offers, follow: Ms Office 2003------------------------------------------------------------------------------------------------------ Creative Suite 7Buy Adobe Acrobat ReaderPrice Of Microsoft Office 2007Buy Adobe Cs3 Design PremiumPurchase Windows Xp OemBuy Vista Or NotPhotoshop Cs PricesBuy Quark Cheese InPurchase Adobe Creative Suite 4 OnlineFront Page Office
DokelovaR is offline
Reply With Quote
View Public Profile
 
Old 04-30-2009, 04:19 AM Thumbs up Re: htaccess path conventions
L a r r y's Avatar
Super Talker

Posts: 100
Name: Larry K
Location: Arizona
Trades: 0
Hello Alpina,
Your request has gone unanswered for nearly a month, but I'll jump in anyway.
Quote:
Originally Posted by alpina View Post
I have protected a directory successfully using htaccess. But am very unsure as to the path naming conventions.

I am using an Apache server on a local machine for development and testing (windows vista home premium), set up as directed with no problems.

But I cannot make head nor tail of the paths given in tutorials and help references such as these:

AuthUserFile /usr/local/you/safedir/.htpasswd

First of all, .htpasswd and .htaccess and any other filenames that begin with a dot, are hidden files in the Linux operating system. As of Windows XP, you cannot tell Windows directly to create a file called (no file name).extension, as in c:\.htaccess, but you can use third-party text editors to save a file directly as .htaccess.

/ is the root of the filesystem, /usr is one folder deep from the root. Equivalent in your case to C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\ is root and C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\usr\ is one level deep.

Supposing you have your site's front page at ...\htdocs\public_html\index.html, anything in the htdocs folder that is not in the public_html branch is a potential safedir. You want your .htpasswd outside of the reach of any browser.




or:

ErrorDocument 401 /errors/authreqd.html
What does that first slash represent, please don't tell me root this or that but give me a path, my document root is:

C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/

/ is root in Linux, just substitute it for your document root. All branches of the filesystem tree spring from the root, with /usr being one branch, and /usr/local being a further branching of this branch of the tree.

Apache turns Windows' backslashes into forward slashes (C:/) so the scripts that run in the Apach environment and designed to eun in Linux will run in Apache in Windows.

I once had an Apache installation in Windows, and I put it on a different drive from C, in a much shorter folder name than "Apache Software Foundation" so that I didn't need to either type long names or read long lines of pathnames, and put my web site files in another folder on the same drive as Apache, and created a \usr\ folder to install ActivePerl in. I selected \usr\ and it added the bin folder and put perl.exe there. Resulting path was in the Windows environment, D:\ust\nin\perl.exe, and in the Apache environment it was /usr/bin/perl. I developed my scripts on my Windows computer, ran them successfully and debugged them, then deployed them on my host's Apache in Linux and everything was fine as soon as I set the permissions, which is a Linux thing.

so what is "usr" or "local", and where does "/errors/" spring from? I welcome any help.
Hope this was helpful.
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Reply     « Reply to htaccess path conventions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39592 seconds with 12 queries