01. september 2005 - 12:07Der er
33 kommentarer og 1 løsning
mandrake/Apache
Hej Eksperter,
Jeg prøver som en gal at få nogle VirtualHosts til at køre på min Apache server. Det virker vist også lige bortset fra at jeg får at vide at jeg ikke har rettigheder til at se siden. Så vidt jeg har forstået er det brugeren apache som skal have de rettingheder, men hvordan tildeler jeg dem
Jeg giver sku snart fortabt :-( Min Vhosts.conf se præcis så ledes ud
################# Vhosts.conf #This is where we store the VirtualHosts configuration. # #Since Apache 1.3.19, we modified the setup to include some nice tricks: # #- We added the User and Group directives so VirtualHosts now work with # suexec directive. If set, Apache will run all cgi scripts under that # user and group (provided the uid and gid are > 100 for security). The # directories and cgi files *must* belong to that user/group for the # feature to work #- We added the Setenv VLOG directive. This works in conjunction with # the CustomLog in common.conf. When Setenv VLOG is set, apache will # create a /var/log/httpd/VLOG-YYYY-MM-<ServerName>.log instead of logging # to access_log. Use this instead of defining a special logfile for # each vhost, otherwise you eat up file descriptors. #- You can also specify a path for the VLOG for each Vhost, for example, # to place the logs in each user's directory. However, if you want to # use the file for accounting, place it in a directory owned by root, # otherwise the user will be able to erase it. #- I suggest only including the ErrorLog *only* if the vhost will use # cgi scripts. Again, it saves file descriptors! #- We added the Rewrite directives so vhosts will work with the # PERLPROXIED configuration
# <VirtualHost web-oasen.dk> # ServerName web-oasen.dk # # normal vhost configs # <IfModule peruser.c> # # this must match a Processor # ServerEnvironment user group /home/user # </IfModule> # </VirtualHost>
Det er meningen at hver bruger skal have sit eget /home hvor alle filer i princippet ligger (jsp/php/html o.s.v) selvfølgelig pænt i deres egne mapper.
hvordan får jeg en liste over de brugere som er opretet. Hvis brugeren apache ikke er oprettet af en eller anden grund, kan det jo være det som er galt
Det kan tænkes at du har /var som Document root længere oppe, som vhosten så af en mærkelig årsag ikke ignorere...
Synes godt om
Ny brugerNybegynder
Din løsning...
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.