ubuntuusers.de

document root bei apache2 ändern

Status: Ungelöst | Ubuntu-Version: Ubuntu 8.04 (Hardy Heron)
Antworten |

nieselfriem

Anmeldungsdatum:
1. November 2007

Beiträge: 72

Hallo!

Code

Da ich Windows und ubuntu gleichermaßen nutze und mal in einem und dann im anderen system bin möchte ich das gleihe verzeichniss für meine webdateien (php) nutzen. So habe ich unter Windows

g:\programme\xampp\htdocs

mein server verzeichnis was unter ubuntu

/media/g/Programme/xampp/htdocs

entspricht. Diese letztere Pfadangabe habe ich in die apache2.conf eingefügt mittels

DocumentRoot "/media/g/Programme/xampp/htdocs"
<Directory "G:/Programme/xampp/htdocs">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks Includes ExecCGI
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny

    Allow from all
</Directory>

eingefügt und den Apache2 neugestartet. Jedoch wird mimmer noch

/var/www/

als Verzeichnis verwendet. Was und wie kann ich das ändern?

Gruß Georg

Chrissss Team-Icon

Anmeldungsdatum:
31. August 2005

Beiträge: 37971

Das geht in der /etc/apache2/sites-available/default siehe

http://wiki.ubuntuusers.de/Apache#Virtuelle-Hosts-einrichten

nieselfriem

(Themenstarter)

Anmeldungsdatum:
1. November 2007

Beiträge: 72

ok das hat er wohl geschluckt. nun habe ich aber folgendes problem wenn ich den lokalhost aufrufe kommt

Forbidden

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

gruß

xabbuh Team-Icon

Anmeldungsdatum:
25. Mai 2006

Beiträge: 6411

Was steht denn in /var/log/apache2/error.log und wie sieht die Datei /etc/apache2/sites-available/default aktuell aus?

Antworten |