danke fur deine hilfe, syssi!
mit
Code: Alles auswählen
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/start/
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R=301,L]
</VirtualHost>
ist das verzeichnis start zu erreichen, wenn ich es explizit per https aufrufe, über http aber kommt die meldung »The requested URL /start/ was not found on this server.«
seltsam.
eine .htaccess, die da reinfunken könnte, habe ich nicht. wo es hakt, wüßte ich auch gern!
die apache2.conf ist weitgehend jungfräulich und sieht jetzt gerade so aus:
Code: Alles auswählen
<Directory /var/www/>
Options -Indexes
</Directory>
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/start/
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R=301,L]
</VirtualHost>
(ein paar passwortgeschützte verzeichnisse:)
<Directory "/var/www/foo">
AuthType Digest
AuthName "authentification required"
AuthDigestProvider file
AuthUserFile /etc/apache2/passwd
Require user user1
</Directory>
LockFile ${APACHE_LOCK_DIR}/accept.lock
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxClients 150
MaxRequestsPerChild 0
</IfModule>
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy all
</Files>
DefaultType text/plain
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
Include ports.conf
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
Include conf.d/
Include sites-enabled/
(grade noch so an nopaste vorbeigekommen…
)
grüße
manes