Toon posts:

veranderen htdocs in localhost onder linux

Pagina: 1
Acties:

Verwijderd

Topicstarter
Hallo, graag zou ik de localhost van linux naar de directory /home/peter/idocs willen verwijzen. Volgens mij moet dit ergens in /ect/rc.config maar dit werkt volgens mij niet helemaal correct. Kan iemand mij een tip geven?

Verwijderd

Ja voortaan zelf uitzoeken.
code:
1
man httpd

Verwijderd

...
de localhost van linux naar de directory /home/peter/idocs willen verwijzen
...
Kan het plz iets precieser ? :P
localhost = de pc waarop je werkt --> een heel systeem kan je moeilijk naar een directory verwijzen, of snap ik het nu niet ? *D

Verwijderd

Volgensmij bedoelt hij, dat hij een andere directory als DocumentRoot wilt.

Dit is heel eenvoudig op te zoeken in de documentatie (of in de configfile).
code:
1
2
3
4
5
6
#
# 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 "jouw_www_directory"


code:
1
2
3
4
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory jouw_www_directory">

  • luc
  • Registratie: Maart 2000
  • Niet online

luc

Op donderdag 07 februari 2002 17:32 schreef TReBLA het volgende:
Volgensmij bedoelt hij, dat hij een andere directory als DocumentRoot wilt.

Dit is heel eenvoudig op te zoeken in de documentatie (of in de configfile).
code:
1
2
3
4
5
6
#
# 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 "jouw_www_directory"


code:
1
2
3
4
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory jouw_www_directory">
Als je dan al antwoord, zet er dan minimaal ff bij _welke_ config file ie aan moet passen..

Topicstarter kan natuurlijk ook ff op inet zoeken..

Verwijderd

Configfile staat toch onder /etc/httpd? -> daar via pico httpd.conf de instellingen aanpassen zoals hierboven aangegeven.
Pagina: 1