Ubuntu Servers :: Make Apache Ask For Password In Certain Folders?
Apr 13, 2010
I basicly want certian folders to deny access to all clients exept those that supply the correct user name and password. I tried following the directions here (for the basic authentication), but its not working.i have
First off please don't say "go read the man page". I need instructions for newbies
I basically want certain folders to deny access to all clients exept those that supply the correct user name and password. I tried following the directions here (for the basic authentication), but its not working. Someone kind enough to help out a confused person like myself?
I just did a new install of 11.04 because I got a new ssd and now when I try to host my site from /home/USER/www/ apache says "You don't have permission to access / on this server" 403 Forbidden. I had the same exact configuration files on my other install of 11.04 and everything worked fine. One thing I did notice is that when apache installed it did not create a www-data group. I also serve a folder for music on another port and I can get to that fine.
I am on mac os x and whenever I make aliases in my apache config file to point to folders outside of main web document root folder, I get access forbidden. I have chmod -R 777 the whole destination directory (to test it) and still no go. Access forbidden. I have also tried pointing directly to [URL].
I posted this yesterday, but my post completely disappeared (I looked high and low -- nothing.) I am using Ubuntu Server 10.04, all the latests updates. For an FTP Server, I use ProFTP.
One specific directory, and it's subdirectories on my server will not download at a reasonable rate. They move at about 17-50KBPS. All other folders work fine, at around 1.5-2.5MBPS.
What is going on? I have no idea how to troubleshoot this. The files being transfered are in a directory under home. They should have no permissions issues (I reapplied the permissions I want already), I tried restarting ProFTP, the files vary in sizes (from a few kilobytes to about 120 megabytes). I use Webmin for most web management.
I am not having overload issues with my network card or CPU utilization while downloading these files. They are being accessed from the local network.
This issue is taxing because the files in question are backup files.
I've managed to setup Ubuntu Server 9.10, and created folders/files toview/edit/execute with Windows and Mac.
Now here is my dilemma, this is for a home server, and I will have 4 users(1 for myself, one with "admin" rights, my fiance(mac user), media pc, and a "guest" account for the computer or 2 that are out in the public(they don't need access to my taxes ).
I'd like to have it so that on my laptop, I can access the whole server, but some files/folders would even need me to put in a password. I want to do this because my fiance gets delete happy and deletes things, so if she goes on my computer she won't delete important info. I'd like her to have access to music, photos, and videos, as well as her having her own folder that she can treat as her hard drive.
The question is, do I need to setup a domain for this, or can I get away with a workgroup?
On startup - prompt asking for apache certificate password doesn't accept input. Can switch to another tty but can't restart apache due to the port already being bound (suppose I could change ports for apache config after startup but that's pretty ugly and clearly not the right way to address the problem.
Recently I've been migrating my development environment to ubuntu (desktop edition, because this is not a server, is just my computer) and I've been having some problems with apache case-sensitive (I'm an absolute beginner with it). I want to make apache case-insensitive, but I didn't find a complete and easy to follow solution online more than doing this:
From the command line, type sudo su to get root privileges. nano /etc/apache2/mods-available/speling.conf Type CheckSpelling on and hit ctrl-x, y to exit and save the file. type a2enmod and then speling and hit enter. type /etc/init.d/apache2 reload to reload apache. Mistype a url to test it.
I found that here: [URL]. It worked for some things but I'm still having a lot of problems with capitalization. I don't wanna go back to windows an ISS. BTW I'm using ubuntu 10.10 desktop edition 32-bits, and I've not moved any apache configuration more than that described above.
I've tried to copy my files from Xamp httdocs in windows to /var/www/html, but I can't paste the file, what should I do so I can paste the files ? I have logged in as a root..
I am trying to make my Apache server show symbolic links in a directory listing, but have so far been unsuccessful. In my latest attempt, I have placed the following code in .htaccess, in the directory with the symlinks that I want listing:
Code: <Directory /> Options All </Directory> Im httpd-vhosts.conf, I have also placed the following code within the relative <VirtualHost></VirtualHost>:
In first place i am sorry about my horrible English. I want to make a web site with a virtual host of apache visible by all the computers connected to my networking. I put this in the end of the file "/etc/httpd/conf/httpd.conf"("192.168.1.194" is the IP address of my computer. The default gateway IP address is "192.168.1.1"):
[Code]...
It works if i go to "http://192.168.1.194/" with the browser of the computer with apache inside, but on the others PC of my networking this method don't work!
Does anyone know a way I can make Wine be able to see my Ubuntu folders? I want to be able to use iTunes with Wine but also be able to just use my home folder instead of putting music and stuff in the Wine folders.
New ubuntu user here, and i feel 100% comfortable with it now other then command line
i love it, feels better then windows, and im in awe at how fast it boots
i have 2 gripes only, that im hoping can be fixed!
is there anyway to make ntfs hidden fils hidden again?
i have a storage partition that i use on windows, and now ubuntu, the problem is theres all sorts o wierd ****
like "system voume information, RECYCLEBIN-O1" and wierd crap like that
its usually hidden in windows, but visible and clickable in ubuntu
is there some way to hide these files and folders? i think windows needs them, but they look so bad and ruin my folder organization
and also, is there some way to have my storage partition always mounted? each time i restart i lose my music library in rhythembox, and have to redirect it to my music folder on my storage drive.
I have an folder with different websites saved on it but when I'm about to extract it to an .zip and unextract it on Windows it says something like wrong name.What to do?DIT: Would it work if I installed VMware Workstation on my PC?
I have Webmin installed on an Ubuntu server. I currently have a successful apache server running on port 80, however I want to create a virtual host on port 81. When I try I go to servers->Apache Webserver-> Create Virtual Host I change the port to 81 and the document root to /var/port81www then I click create. How ever when I goto 192.168.1.5:81 (local ip, I know I have to port forward but its not even working local) it does not work.
I've got a NAS running and I'd like to somehow make some of the folders and files invisible to certain users only. For example, if I 'ls' a directory, I want to see files 'a', 'b', and 'c'. But if another user does 'ls' in the same directory, I only want them to be able to see 'a' listed.I know I can use 'chmod +700' to make certain files not able to be read/written, but the filename would still appear in a 'ls'.I know I can put certain files inside of a '.hidden' file in the folder, but then it would be hiEdit : I'd also like to mention that the users that connect to the NAS could be coming from Windows or Mac operating systems. So hopefully the solution would work for users from those systems also..
I'm new to ubuntu (installed 3 days ago). I have two disks in my notebook - one hdd (big, 320GB) and one ssd (very fast, 120GB). Everything is on ssd now, but I want to know how can I split my home directory to make config folders (like .thunderbird, .mozilla, .purple) to use ssd (for very fast response), and put movies, pictures, downloads and other folders to use hdd (a lot of space). Simply mounting hdd as /home is not a good option, becouse config files would be on hdd also. Should I mount (or link) all folders like /home/username/Videos to hdd, or is there a better solution?
i have been copying dvd's and now i do not have enough room in my temporary folder,but i cannot find out how to delete the folders and make space to continue
I'm playing with apache (and to be quite honest have no idea what I'm doing at this stage!) and currently have a large number of files and folders on the sad little site. One thing that is really bothering me is that files and folders both appear the same. I'm not looking for anything fancy. Something like this is more than adequate. Right now there is simply a dot next to each item.
Is it possible to make a script that makes a tree of all folders and subfolders and outputs it to either a .txt file or .pdf? All folders except from one shall list 2 levels. The except folder all the way.