apache konfi., htdocs ändern? und php läuft nicht in html??

Alles, was den Apache betrifft, kann hier besprochen werden.

apache konfi., htdocs ändern? und php läuft nicht in html??

Postby reb » 14. November 2004 16:02

Hallo,

wie, wo konfiguriere ich: dass ich meine html und php dateinen nicht im htdocs verzeichniss aufzufufen sind, sondern ein beliebiges von mir??

und weshalb funktioniert php nicht wenn ich eine xhtml starte in der php steht??

vielen dank, bin absoluter neuling....in php, apache und co...

ach ,über suchfunktion habe ich nix dementsprechendes gefunden...
reb
 
Posts: 3
Joined: 19. October 2004 14:48

Postby Thomas Br » 14. November 2004 16:14

Dafür ist die <DokumentRoot> zuständig !

kleiner ausschnitt aus der httpd.conf (zu finden im Apache Stammverzeichnis!)
Code: Select all
---schnipp---
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "D:/apachefriends/xampp/htdocs"

'und hier:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "D:/apachefriends/xampp/htdocs">
---schnapp---

Die musst du dann lediglich an deine Bedürfnisse anpassen !
User avatar
Thomas Br
 
Posts: 33
Joined: 24. June 2004 19:08
XAMPP version: 7.1.1
Operating System: Windows 10 x64 Pro


Return to Apache

Who is online

Users browsing this forum: No registered users and 244 guests