![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 13.09.2008 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Mój problem polega na błędach związanych z plikiem web.config w serwerze IIS 7.5 na Windows Server 2008 R2 Dokładnie sprawa wygląda tak, że: Otrzymałem do uruchomienia stronę w PHP na serwerze IIS 7 . Wcześniej strona działała pod kontrolą serwera na Linux -ie. --- Jak wiadomo Apache / Linux opiera się na pliku konfiguracyjnym .htaccess , a IIS 7 na web.config. --- Po postawieniu IIS oraz uruchomieniu PHP NTS 5.6.29 , PHPMYADMIN, MySQL, ZendGuard (strona go wymaga) w PHP itp. nie mogę wywołać wyżej omawianej strony. Bez przerwy otrzymuje błąd 500.19 kod błędu: 0x8007000d - wg MS jest to błąd złej konfiguracji pliku web.config Teraz moje pytanie: Czy ktoś z obecnych forumowiczów byłby w stanie przepisać obecny plik .htaccess do pliku web.config.? Próby importu pliku .htaccess do IIS 7 kończą się błędami, że nie rozpoznaje wszystkiego i nie może go importować... Wygenerowanie pliku web.config poprzez znalezione strony www kończy się mimo wszystko błędem 500.19 Błędy z IIS 7 przy imporcie konfiguracji .htaccess : Kod <rewrite>
<rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="^.*$" /> <conditions logicalGrouping="MatchAny"> <!--The condition pattern is not supported: -s.--> <!--The condition pattern is not supported: -l.--> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" /> </conditions> <action type="None" /> </rule> <!--The rule cannot be converted into an equivalent IIS format because of unsupported flags: E--> <!--This rule was not converted because it contains references that are not supported: 'ENV::BASE'--> </rules> </rewrite> |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
A gdzie htaccess?
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 7 Pomógł: 0 Dołączył: 13.09.2008 Ostrzeżenie: (0%) ![]() ![]() |
No tak przepraszam.
Zawartość htaccess: Kod php_flag magic_quotes_gpc off :Location /*.php Use php54 :Location RewriteEngine On # The following rule tells Apache that if the requested filename # exists, simply serve it. RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # The following rewrites all other queries to index.php. The # condition ensures that if you are using Apache aliases to do # mass virtual hosting, the base path will be prepended to # allow proper resolution of the index.php file; it will work # in non-aliased environments as well, providing a safe, one-size # fits all solution. RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$ RewriteRule ^(.*) - [E=BASE:%1] RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 8 068 Pomógł: 1414 Dołączył: 26.10.2005 Ostrzeżenie: (0%) ![]() ![]() |
|
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 24.04.2025 - 06:22 |