| | | | |
| |||||||
| Server, Hosting und Workstations Server-Konfigurationsdateien (.htaccess/httpd.conf) und Arbeiten auf Serverebene |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Erfahrener Benutzer Registriert seit: 01.09.2004
Beiträge: 532
PHP-Kenntnisse: Fortgeschritten ![]() | Also so? # forbid access to the entire filesystem by default <Directory /srv/www/htdocs> Options None AllowOverride All Order deny,allow Deny from all </Directory> # use .htaccess files for overriding, AccessFileName .htaccess # and never show them <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> |
| | |
| | ||
| Gast
Beiträge: n/a
| Zitat:
Das sollte bleiben: Code: # forbid access to the entire filesystem by default
<Directory />
Options None
AllowOverride None
Order deny,allow
Deny from all
</Directory>
# use .htaccess files for overriding, AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
Code: <Directory "/srv/www/htdocs">
AllowOverride all
<IfModule mod_access.c>
Allow from all
</IfModule>
</directory>
NameVirtualHost 1.2.3.4:80 # Deine IP
<VirtualHost 1.2.3.4:80> # Deine IP
ServerName example.com
ServerAlias www.example.com
DocumentRoot /srv/www/htdocs
Options FollowSymLinks
php_admin_flag safe_mode Off
php_admin_flag file_uploads On
php_admin_flag track_vars On
php_admin_flag magic_quotes_runtime Off
php_admin_flag magic_quotes_gpc Off
php_admin_value upload_tmp_dir /tmp
php_admin_value include_path "."
php_admin_value default_charset none
php_admin_value open_basedir /srv/www/htdocs:/tmp
php_admin_value session.cookie_path /
php_admin_value session.auto_start 0
php_admin_value session.gc_maxlifetime 1800
php_admin_value session.use_cookies 1
php_admin_value session.cookie_lifetime 0
php_admin_value session.cookie_secure Off
php_admin_value session.use_trans_sid 0
DirectoryIndex index.html index.htm index.php
</virtualhost>
| |
|
| | ||
| Erfahrener Benutzer Registriert seit: 01.09.2004
Beiträge: 532
PHP-Kenntnisse: Fortgeschritten ![]() | Zitat:
Dann gibt er mir beim Starten folgenden Fehler: Code: Starting httpd2 (prefork) Syntax error on line 56 of /etc/apache2/listen.conf: </directory> without matching <directory> section The command line was: /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf Weil das ist nur fürs Intranet gedacht. | |
| | |
| | |||
| Gast
Beiträge: n/a
| Zitat:
Erst der default Server, dann die Virtualhosts. Das ist das Prinzip, wie man mehrere Domains auf einem Server verwalteten kann. Der erste Virtualhost fungiert dann als default Eintrag. Natürlich mußt Du '1.2.3.4' und 'example.com' anpassen. Zitat:
Code: ServerName example.com ServerAlias www.example.com subdomain47.example.com www.subdomain47.example.com | ||
|
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| .htaccess | LA-Finest | HTML, Usability und Barrierefreiheit | 4 | 28.02.2007 22:39 |
| linux 9.3 startmenü | chiliGREEN | Server, Hosting und Workstations | 9 | 30.07.2006 23:17 |
| Webseiten werden bei Linux nicht richtig angezeigt | Server, Hosting und Workstations | 13 | 16.10.2005 13:39 | |
| kostenlose und vollständige PHP-IDE für linux? | PHP Tipps 2005-2 | 3 | 12.10.2005 17:58 | |
| Datenbank in Windows und Linux benützen | karl | Datenbanken | 4 | 12.10.2005 14:37 |
| Datenbank in Windows und Linux benützen | karl | PHP Tipps 2005-2 | 1 | 12.10.2005 12:06 |
| AOL bei Linux | ClaBo3 | Server, Hosting und Workstations | 7 | 18.05.2005 13:24 |
| [Erledigt] TTF-Fonts unter Linux anders als unter Win (GD2) | Server, Hosting und Workstations | 2 | 15.03.2005 11:25 | |
| PHP einrichten unter Linux | Server, Hosting und Workstations | 3 | 04.03.2005 20:53 | |
| [Erledigt] Linux | Server, Hosting und Workstations | 14 | 25.11.2004 17:04 | |
| webserver mit linux | flyingeagle | Server, Hosting und Workstations | 10 | 02.11.2004 19:14 |
| Umstieg auf Linux | Quadaptor | Server, Hosting und Workstations | 17 | 05.10.2004 11:55 |
| Apache2 unter Linux und Siemens Gigaset SE505 funzt nicht | Server, Hosting und Workstations | 5 | 21.07.2004 08:43 | |
| Problem mit .htaccess und php | PHP Tipps 2004 | 2 | 05.07.2004 14:06 | |
| [Erledigt] PHP Script von Windows auf Linux | PHP-Fortgeschrittene | 7 | 15.06.2004 13:23 | |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| apache2.conf htaccess, htaccess wird nicht beachtet, htaccess apache2.conf, htaccess linux, .htaccess wird nicht beachtet, apache2.conf .htaccess, htaccess apache config, apache config htaccess, linux htaccess, apache beachtet htaccess nicht, .htaccess linux, htaccess apache2 linux, .htaccess apache2.conf, htaccess apache2, apache2.config htaccess, apache erkennt htaccess nicht, .htaccess apache2 mime virtual host, apache conf htaccess, apache2 linux htaccess, linux apache htaccess |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.