Results 1 to 10 of 10

Thread: Forbidden You don't have permission to access / on this server.

  1. #1
    Join Date
    Apr 2010
    Beans
    9

    Forbidden You don't have permission to access / on this server.

    This is what I'm attempting to achieve:
    example1.com > site1
    example2.com > site 2

    I've created the sites as virtual hosts:
    /etc/apache2/sites-available/example1
    Code:
    <VirtualHost *:80>
            ServerAdmin me@example1.com
            ServerName example1.com
            ServerAlias example1.com
            DocumentRoot /home/me/Sites/example1/www
            <Directory /home/kristian/Sites/example1/www/>
                    Options Indexes FollowSymLinks MultiViews
                    AllowOverride None
                    Order allow,deny
                    allow from all
            </Directory>
    </VirtualHost>
    The www folder has permissions 755, owner me and group me.
    The index.html file has permissions 644, owner me and group me.

    Visiting the sites shows:
    http://example1.com/ & http://example1.com/index.html
    Code:
    Forbidden
    
    You don't have permission to access / on this server.
    
    Apache/2.2.14 (Ubuntu) Server at pluginstudios.co.uk Port 80
    Without the virtual hosts the setup works fine.

    Any suggestions please?

  2. #2
    Join Date
    Apr 2010
    Beans
    9

    Re: Forbidden You don't have permission to access / on this server.

    Could any help? I've read a lot about this topic, but not sure what to do exactly…

  3. #3
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Forbidden You don't have permission to access / on this server.

    Are the user's home directories encrypted?
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  4. #4
    Join Date
    Apr 2010
    Beans
    9

    Re: Forbidden You don't have permission to access / on this server.

    Quote Originally Posted by CharlesA View Post
    Are the user's home directories encrypted?
    Yes! Thank you! How do I stop that?

  5. #5
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Forbidden You don't have permission to access / on this server.

    You don't. You need to put the sites somewhere else. Normally they'd be in /var/www/somefolder
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #6
    Join Date
    Apr 2010
    Beans
    9

    Re: Forbidden You don't have permission to access / on this server.

    Quote Originally Posted by CharlesA View Post
    You don't. You need to put the sites somewhere else. Normally they'd be in /var/www/somefolder
    It wont allow me to create any files or folders in the /var/www directory.

  7. #7
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Forbidden You don't have permission to access / on this server.

    You need to have root permission to create files and folders there.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  8. #8
    Join Date
    Apr 2010
    Beans
    9

    Re: Forbidden You don't have permission to access / on this server.

    Quote Originally Posted by CharlesA View Post
    You need to have root permission to create files and folders there.
    Okay, thank you for the help, I'm certain this will solve my problem completely.

  9. #9
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,603

    Re: Forbidden You don't have permission to access / on this server.

    when you need root provileges, use the

    sudo mkdir xxx

    then your making a root owned folder

    sudo chmod 777 xxx
    SERVER: Azure datacenters, Hyper-V

  10. #10
    Join Date
    Apr 2010
    Beans
    9

    Re: Forbidden You don't have permission to access / on this server.

    Unfortunately I restarted my server and I need to type a password before services start but don't have access to the machine physically right now.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •