Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Standard Domain

Empfohlene Antworten

Moin moin Leute!

ich hab da mal ne ganz dringende Frage *löl*

Mein Apache 2.0.50 auf Suse ...

ich hab mehrere Domains.

wenn ich jetzt einen unbekannten vhost einer beliebigen meiner Domains anspreche lande ich auf dem zuerst konfigurierten vhost der ersten domain.

Kann man das irgendwie abschalten? irgendwie so nen catchall vhost oder sowas?

mfg

Eth

Öhm was heißt poste mal die relevanten Zeilen? Es gibt keine relevanten Zeilen ist einfach standard behavior vom apache ...

/etc/apache

-> http.conf

enthält: Include /etc/apache/vhosts.d/*.conf

->vhosts.d/

enthält config files:

-> 01_domain1_de.conf

-> 02_domain2_net.conf

-> ...

01_domain1_de.conf:



<VirtualHost bla:80>

        ServerAdmin webmaster@domain1.de

        ServerName www.domain1.de

        ServerAlias domain1.de


        DocumentRoot /srv/www/domain1_de/main


        ErrorLog /var/log/apache2/www.domain1.de-error_log

        CustomLog /var/log/apache2/www.domain1.de-access_log combined


        HostnameLookups Off


        UseCanonicalName Off

        ServerSignature On


        <Directory "/srv/www/domain1_de/main">

                Options IncludesNoExec SymLinksIfOwnerMatch

                AllowOverride Indexes AuthConfig FileInfo

                #AllowOverride All

                Order allow,deny

                Allow from all

        </Directory>


        ScriptAlias /cgi-bin/ "/srv/www/domain1_de/main/cgi-bin/"


        <Directory "/srv/www/domain1_de/main/cgi-bin">

                AllowOverride None

                Options +ExecCGI -Includes

                Order allow,deny

                Allow from all

        </Directory>


        php_admin_value open_basedir /srv/www/domain1_de:/usr/share/php

        php_admin_value upload_tmp_dir /srv/www/domain1_de/tmp

        php_admin_value session.save_path /srv/www/domain1_de/session

</VirtualHost>


Das ganze läuft auf einem SuSE 9.2 wie gesagt mit apache 2.0.50

Dann erstelle doch einfach eine 00_default.conf und lasse die

ServerName/ServerAlias-Optionen weg:

Dann wird der Zugriff über die IP-direkt bzw. über unbekannte Domains/Subdomains dorthin geleitet...

<VirtualHost bla:80>

ServerAdmin webmaster@domain.de

DocumentRoot /srv/www/default/main

</VirtualHost>

Zumindest hoffe ich, dass es so funktioniert ;)

Ne ne so hab ich ja wieder überall die selbe Seite.

Das wäre ja nicht Sinn und Zweck der Übung. :D

Was ich wollte ist für jede Domain eine Standardseite. Nicht immer die gleiche.

Hast du da irgendeine idee?

Also meinst Du sowas?


<VirtualHost 194.xxx.xxx.xxx:80>

ServerName www.domain1.de

DocumentRoot /data/www/domain1

</VirtualHost>


<VirtualHost 194.xxx.xxx.xxx:80>

ServerName sub1.domain1.de

DocumentRoot /data/www/domain1/sub1

</VirtualHost>


<VirtualHost 194.xxx.xxx.xxx:80>

ServerAlias *.domaintest.de

DocumentRoot /data/www/domain1/default

</VirtualHost>

hö? Ich kann da Wildcards reinschreiben? lölz

goil ich teste dat mal ... danke :)

Funzt einwandfrei ... hätte man auch selbst drauf kommen können ... löl ... naja ok man dankt trotzdem mal :)

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.