Syntaxfehler

Apache, Lighttpd, nginx, Cherokee
Post Reply
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Syntaxfehler

Post by umbroboy »

Hallo,

habe eine neue subdomain eingerichet wie folgt:

Code: Select all

<VirtualHost XXX:80>

DocumentRoot /home/httpd/vhosts/horde/ansel
Alias /horde /home/httpd/vhosts/horde
ServerName photos
ServerAlias photos.*
UseCanonicalName Off
<Directory /home/httpd/vhosts/horde/ansel>
<IfModule sapi_apache2.c>
php_admin_flag engine on
php_admin_flag magic_quotes_gpc off
php_admin_flag safe_mode off
php_admin_value open_basedir none
php_admin_value include_path none
</IfModule>
Options -All +Includes +ExecCGI +FollowSymLinks
                Order allow,deny
                Allow from all
</Directory>
</VirtualHost>



Allerdings bekomme ich immer einen Syntaxfehler, wenn ich die Seite auf mach.

Zeile: 2
Zeichen: 1
Code: 0

Url: subdomain.xxx.de/horde/ansel/list.php

gehe ich allerdings über

xxx.horde/ansel/list.php kommt keine scriptfehlermeldung.

Hat jemand ne idee warum?

Viele Grüße und Danke
umbroboy
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Syntaxfehler

Post by Joe User »

umbroboy wrote:Hat jemand ne idee warum?
Ja, Folgendes ist unzulässig:

{code]ServerAlias photos.*[/code]
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Roger Wilco
Posts: 5923
Joined: 2004-05-23 12:53
 

Re: Syntaxfehler

Post by Roger Wilco »

Joe User wrote:Ja, Folgendes ist unzulässig:

{code]ServerAlias photos.*[/code]
Nö, das funktioniert schon. Das sorgt dafür, dass die Subdomain photos jeder Domain den gleichen VHost benutzt. Die interne Verarbeitung funktioniert dann analog zu "ServerAlias *.example.org", um jede Subdomain abzufangen.
"*" ist einfach eine Wildcard.

@OP: Wird die Meldung vom PHP-Interpreter oder vom Apache ausgegeben?
umbroboy
Posts: 258
Joined: 2005-05-11 11:49
 

Re: Syntaxfehler

Post by umbroboy »

Hallo,

vom PHP-Interpreter.

Sprich ich greif mit dem IE auf die URL zu und dann kommt die Meldung.

Im Apache Log habe ich auch gerade nachgeschaut und auch nichts gefunden.

Viele Grüße
umbroboy
Post Reply