mentby.com
Blog | Jobs | Help | Signup | Login

loading

apache2 problem with name based vhost

Sat, 01 Dec 2012 01:39:15 -0800 Post Comments

I have used name based vhosts for a while and never had any problems
with them. But now I have encountered a problem.

I setup a vhost called qubit.

Here is /etc/apache2/sites-available/qubit:
<VirtualHost *:80>
     ServerAdmin root*******
     ServerName qubit.oggthebase.org
     ServerAlias qubit.oggthebase.org
     DocumentRoot /var/www/qubit/
     ErrorLog /var/www/qubit/logs/error.log
     CustomLog /var/www/qubit/logs/access.log combined

        <Location /server-status>
                SetHandler server-status
                Order deny,allow
                Deny from all
                Allow from localhost
        </Location>

</VirtualHost>

Now the problem is when I load the vhost:  http://qubit.oggthebase.org
it instead loads /var/www/index.html and not /var/www/qubit/index.html

I think the problem is that /var/www/qubit is not owned by root? I
want a user to have that as their website so I did this:

adduser joe www-data
chown -R www-data:www-data /var/www/qubit
chmod -R g+rw /var/www/qubit

Anyway to get this working correctly?

-- http://www.fidei.org

Archive:  

protecting web directories in apache2

Tue, 27 Nov 2012 08:12:18 -0800 Post Comments

Running Apache2 on Debian testing release. Say I have a directory http://www.website.org/files/
And I want to let a user download a file: http://www.website.org/files/ example.txt
But I don't want them to be able to browse the directory and see the
other files in there.
So how can I protect the directory?

Zach

-- http://www.fidei.org

Archive:  
The other day I had a video that had very faint volume so I turned the
volume up to 200% in VLC using the slidebar. Now whenever I open a
video the volume begins at 200%. I tried opening VLC, sliding the
volume to 100% and quitting, but when I open a video it goes right
back up to 200% after the video has been loaded. This is really
frustrating. Any solutions? Running VLC 1.1.11 on Windows 7 Ultimate
(x64).

-- http://www.fidei.org
______________________________________________________
vlc mailing list
To unsubscribe or modify your subscription options: http://mailman.videolan.org/listinfo/vlc
Profile Widget
Copy and paste this HTML code to your blog or website: