
![]() ![]() |
Sep 1 2007, 08:40 PM
Post
#1
|
|
|
Resident Slow Modder!! ![]() ![]() ![]() ![]() ![]() ![]() Group: O-CuK Members Posts: 2,693 Joined: 16-July 03 From: Barnsley, UK Member No.: 19 |
I'm settings up a file share / torrent / web server box for a project at home. I've currently got Ubuntu server 7.04 running in VPC 2004 with AMP install running torrentflux and phpmyadmin... those work fine
My problem is i've only started looking at this stuff over the last few weeks and have no previous experience to call upon. When I goto my server as http://192.168.0.3/ i get a list of folders and files - this is what am trying to prevent. Now i've tried using a .htaccess and i've tried setting various <Directory> sections in apache2.conf... short of putting a index.htm in there am stumped!! if it makes any difference i've used all the default installs for tha packages so the folder etc are all default. the 'root' folder for my apache is /var/www/ if that helps.. any one suggest anything?? -------------------- Quad Core, Dual Loop Watercooled Mountain Mods Duality -: Asus P5N-E SLI :-: Intel Q6600 @ Stock :-: 2GB OZC CP2-6400 :-: BFG 8800GTX :-: Audigy X-Fi :- ![]() Old Case: Lian-Li V2000 |
|
|
|
Sep 1 2007, 09:23 PM
Post
#2
|
|
|
Roll Bounce.. Group: ADMIN:O-CuK Administrators Posts: 11,262 Joined: 16-June 03 From: Nottingham, UK Member No.: 676 |
Are you trying to do this to stop people browsing directories, or for security ?
If its the former, a blank index.htm file will stop it, if the later, you need to look into htaccess -------------------- ~ Intel Core2 Quad Q6600 ~ Shuttle SP35P2 ~ 8Gb Kingston Ultra Low Profile ~ ATI HD5770 ~ |
|
|
|
Sep 2 2007, 10:17 AM
Post
#3
|
|
|
Resident Slow Modder!! ![]() ![]() ![]() ![]() ![]() ![]() Group: O-CuK Members Posts: 2,693 Joined: 16-July 03 From: Barnsley, UK Member No.: 19 |
cheers for the reply... managed to get it working via webmin
I've used it to manually at a few Directives to prevent all /var/www access but allow torrentflux - works a treat! -------------------- Quad Core, Dual Loop Watercooled Mountain Mods Duality -: Asus P5N-E SLI :-: Intel Q6600 @ Stock :-: 2GB OZC CP2-6400 :-: BFG 8800GTX :-: Audigy X-Fi :- ![]() Old Case: Lian-Li V2000 |
|
|
|
Sep 2 2007, 10:22 AM
Post
#4
|
|
|
Roll Bounce.. Group: ADMIN:O-CuK Administrators Posts: 11,262 Joined: 16-June 03 From: Nottingham, UK Member No.: 676 |
A tip now, so you learn.. go ssh on to the box, and see what the webmin did for you, its probably changed the owners of the folders, or permission.
-------------------- ~ Intel Core2 Quad Q6600 ~ Shuttle SP35P2 ~ 8Gb Kingston Ultra Low Profile ~ ATI HD5770 ~ |
|
|
|
Sep 2 2007, 11:33 AM
Post
#5
|
|
|
Resident Slow Modder!! ![]() ![]() ![]() ![]() ![]() ![]() Group: O-CuK Members Posts: 2,693 Joined: 16-July 03 From: Barnsley, UK Member No.: 19 |
hehe already there mate
it added the <directory /> sections to the right part of the apache2.conf Turns out I was adding them into a section created for a module of some sort so it only applied to that module am guessing... I'll get these slowly, tho be be honest this is the easy part. the end goal is to have this whole setting running from a Cobalt Qube 3 system so i've a fair distance to go yet.. expect more questions -------------------- Quad Core, Dual Loop Watercooled Mountain Mods Duality -: Asus P5N-E SLI :-: Intel Q6600 @ Stock :-: 2GB OZC CP2-6400 :-: BFG 8800GTX :-: Audigy X-Fi :- ![]() Old Case: Lian-Li V2000 |
|
|
|
Sep 3 2007, 05:58 PM
Post
#6
|
|
|
In a tiny world of his own. ![]() ![]() ![]() ![]() ![]() Group: O-CuK Members Posts: 1,454 Joined: 3-November 03 From: Exeter, Devon, Member No.: 123 |
hmm on my websever i just have
.htaccess inside its just got Options -Indexes sorted -------------------- ![]() |
|
|
|
Sep 4 2007, 06:44 AM
Post
#7
|
|
|
Resident Slow Modder!! ![]() ![]() ![]() ![]() ![]() ![]() Group: O-CuK Members Posts: 2,693 Joined: 16-July 03 From: Barnsley, UK Member No.: 19 |
initially thats what i tried. got a feeling i may have botched something in the apache config that was ignoring the .htaccess i made
all sorted now tho -------------------- Quad Core, Dual Loop Watercooled Mountain Mods Duality -: Asus P5N-E SLI :-: Intel Q6600 @ Stock :-: 2GB OZC CP2-6400 :-: BFG 8800GTX :-: Audigy X-Fi :- ![]() Old Case: Lian-Li V2000 |
|
|
|
Mar 23 2008, 02:00 AM
Post
#8
|
|
|
O-CuK Wanderer ![]() Group: O-CuK Members Posts: 66 Joined: 25-January 05 From: Oxford, England Member No.: 1,800 |
initially thats what i tried. got a feeling i may have botched something in the apache config that was ignoring the .htaccess i made all sorted now tho you can just put a blank index.html in the folder, i prefer that to messing around with htaccess or the apache conf. Edit, sorry old thread on the first page, didnt check the date. This post has been edited by Jimbob7: Mar 23 2008, 02:01 AM -------------------- PM740 @ 9x290 2.61GHz, P4C800 Deluxe
X800Pro 600/560, TwinMos 1G BH-5 TDX, Maze4, 120.3, D5, U2-UFO. Dual P3 600MHz, 512MB, Asus P2B-DS, Firewall. |
|
|
|
Mar 23 2008, 02:54 AM
Post
#9
|
|
|
Cheeky Fingers Dave ! Group: ADMIN:O-CuK Administrators Posts: 6,882 Joined: 11-June 02 From: Hampshire, England Member No.: 394 |
no worries
thx for the info -------------------- ![]() Intel Core i7 860 2.8Ghz - nVidia GeForce GTX 275 - 4GB Corsair XMS3 PC12800 - 150GB WD Raptor - BeQuiet! 1000W PSU - SilverStone SG01S-W Evolution Case 3DMark 01 SE (54805) : 3DMark 06 (17964) Updated 22.02.2010 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 10th September 2010 - 12:24 AM |