Go Back   Computer Forums > General Computing > Server Administration
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 12-04-2008, 06:31 PM   #1
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default .htaccess files on ubuntu 8.10

My .htaccess files seem to be disappearing...

They still work for example one .htaccess denies all from a folder. I go in that folder and the .htaccess is gone just after making it and leaving that folder.

Yet if I try and access that folder using the browser it returns a 404 error.
So they seem to be sort of working although I think it's suppose to return a 403 isn't it?

Anyone know why they are disappearing?


Just got an idea.. I'm going to make a .htaccess file in a folder then leave the folder, then re enter see if the file is still there. Nope it's gone.

Lets see what happens when I enter that URL in the browser. Again acts like the .htaccess is still there.
Catch this I tried to make a .htaccess file in the folder where the other .htaccess vanished and it says that file name .htaccess is already in use.
__________________

vampist is offline   Reply With Quote
Old 12-05-2008, 06:28 AM   #2
Site Team
 
root's Avatar
 
Join Date: Mar 2004
Posts: 8,003
Default Re: .htaccess files on ubuntu 8.10

how are you viewing the folder listing.

.htaccess is a hidden file so youo can only see it when using the ls command to list files with a switch to show hidden files.
__________________

__________________
I didn’t fight my way to the top of the food chain to be a vegetarian…
Im sick of people saying 'dont waste paper'. If trees wanted to live, they'd all carry guns.
"The inherent vice of capitalism is the unequal sharing of blessings; The inherent vice of socialism is the equal sharing of miseries."
root is offline   Reply With Quote
Old 12-07-2008, 04:41 PM   #3
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: .htaccess files on ubuntu 8.10

Is command?
Sorry I'm new to Linux.
I'm just browsing through the folders with 'open folder'.
I do have sudo/root access while browsing.

What do I have to do to be able to see them?
vampist is offline   Reply With Quote
Old 12-09-2008, 03:49 PM   #4
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: .htaccess files on ubuntu 8.10

Open a terminal, and go to the folder where the file SHOULD be (for example, /var/www)

Type in:

Code:
cat .htaccess
If you get the contents of the .htaccess file, the "dotfiles" are being hidden.

If you get the error:
Code:
cat: .htaccess: No such file or directory
Then the file is, for some reason being deleted/not being written in the first place.
j03 is offline   Reply With Quote
Old 12-10-2008, 07:49 PM   #5
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: .htaccess files on ubuntu 8.10

Ok so I tried the cat command threw back the error.
So I type cd then the location of the file then cat command.
Didn't give me an error but it didn't make the file shown.

So I did some searching to see if there was a "Show hidden files" button or option somewhere.

Found it of course under view. The .htaccess file was hidden not only to the client but the server user as well.. Sorta of an interesting feature but alight.
(New to Ubuntu)

Thanks for the help guys.
vampist is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 01:57 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0