Einzelnen Beitrag anzeigen
Alt 27.11.2017, 17:30   #5
Bl@ck-Ripper™
Neuling
Punkte: 615, Level: 12 Punkte: 615, Level: 12 Punkte: 615, Level: 12
Levelaufstieg: 30% Levelaufstieg: 30% Levelaufstieg: 30%
Aktivität: 99,8% Aktivität: 99,8% Aktivität: 99,8%
Letzte Erfolge
Auszeichnungen
 
Benutzerbild von Bl@ck-Ripper™
 
Registriert seit: 02.11.2017
Beitr?ge: 17
Abgegebene Danke: 0
Erhielt 0 Danke für 0 Beiträge
Themenstarter Themenstarter
Downloads: 3
Uploads: 0
Nachrichten: 0
Renommee-Modifikator:
0 Bl@ck-Ripper™ ist einfach richtig nettBl@ck-Ripper™ ist einfach richtig nettBl@ck-Ripper™ ist einfach richtig nettBl@ck-Ripper™ ist einfach richtig nettBl@ck-Ripper™ ist einfach richtig nett
Standard

000-default.conf (mit ip/url oder * ist egal )
Code:
<VirtualHost xx.xx.xx.xx:80>     

     ServerName xx.xx.xx.xx
     ServerAlias xx.xx.xx.xx
  
     ServerAdmin webmaster@localhost
     DocumentRoot /var/www/html

</VirtualHost>

<VirtualHost url.endung:80>

      ServerName url.endung
      ServerAlias url.endung

      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html/neu

</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
default-ssl.conf
Code:
<IfModule mod_ssl.c>
    <VirtualHost _default_:443>
        ServerAdmin webmaster@localhost
                DocumentRoot /var/www/html
                SSLEngine on
                SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                SSLOptions +StdEnvVars
        </Directory>

    </VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
apache2.conf
Code:
DefaultRuntimeDir ${APACHE_RUN_DIR}

PidFile ${APACHE_PID_FILE}

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 5

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}

HostnameLookups Off

ErrorLog ${APACHE_LOG_DIR}/error.log

LogLevel warn

# Include module configuration:
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf

# Include list of ports to listen on
Include ports.conf

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Require all denied
</Directory>

<Directory /usr/share>
    AllowOverride None
    Require all granted
</Directory>

<Directory /var/www/>
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
</Directory>

#<Directory /srv/>
#    Options Indexes FollowSymLinks
#    AllowOverride None
#    Require all granted
#</Directory>

AccessFileName .htaccess

<FilesMatch "^\.ht">
    Require all denied
</FilesMatch>

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

IncludeOptional conf-enabled/*.conf

IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
ports.conf
Code:
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 80

<IfModule ssl_module>
    Listen 443
</IfModule>

<IfModule mod_gnutls.c>
    Listen 443
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
mehr wüsste ich jetzt nicht.

bei eingabe der ip kommt man auf den ordner html (so soll es sein)
bei eingabe der url kommt man auf den ordner html (soll aber auf neu kommen)

Und jetzt das Kuriose.

wemm uch die 000-def ändere in
Code:
<VirtualHost xxx.xxx.xxx.xx:80>     

     ServerName xxx.xxx.xxx.xx
     ServerAlias xxx.xxx.xxx.xx
  
     ServerAdmin webmaster@localhost
     DocumentRoot /var/www/html

</VirtualHost>


<VirtualHost url.endung:80>

      ServerName url.endung
      ServerAlias url.endung

      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html/neu

</VirtualHost>

<VirtualHost urlvondyndns.istmein.de:80>

      ServerName urlvondyndns.istmein.de
      ServerAlias urlvondyndns.istmein.de

      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/html/neu2

</VirtualHost>
Komme ich wenn ich die ip eingeba auf : html
bei der url (von dyn.com) auf : neu2
bei der normalen url auf : html statt auf neu

irgendwie verstehe ich das gerade nicht :/

an dem domain hoster bzw. cloudflare kann es ja eigentlich nicht liegen, da die domain ja uf die ip leitet



--======================================--
--==
Beitrag erstellt: 18:30 um 23:25 ==--
--==
geantwortet 27.11.2017 auf Beitrag vom 26.11.2017 ==--
--== automatische Beitragszusammenführung ==--
--======================================--


Bl@ck-Ripper™ schrieb nach 19 Stunden, 4 Minuten und 48 Sekunden:

ADD :

wenn ich mache

(http://) ip = html Ordner
(https://) ip = html Ordner (muss zertifika bestätigen da selbst signiert)
ist auch richtig so

(http://) urlvondyndns.istmein.de = neu2 Ordner
(https://) urlvondyndns.istmein.de = html Ordner (muss certifikat bestätigen da selbst signiert)
Warum wird bei https auf html umgeleitet ??

(http://) domain.endung = html Ordner
(https://) domain.endung = html Ordner (certifikat muss nicht bestätigt werden da signiert)
Soweit ok nur soll es nicht ins html Ordner gehen sondern ins neu Ordner

von mir aus kann auch von der domain.endung in html gehen und mit der ip in ein anderes.
Hab ich per .ht probiert aber funktioniert auch nicht.

So langsam weiß ich auch nicht mehr weiter :/

Ge?ndert von Bl@ck-Ripper™ (26.11.2017 um 23:06 Uhr)
Bl@ck-Ripper™ ist offline   Mit Zitat antworten Nach oben