|
Autor
|
Wiadomość
|
|
Marcin Drozd
Postów: 378 od 04/01/2006
|
Piątek 06 Lipiec 2007 6:30:15 pm
Re: konfiguracja virtual host, cron jobs itp
mozliwe ze braku jeszcze jakiegos wpisu.
ostatnio na home'ie musialem jeszcze dopisac cos jak to:
RewriteRule !runcronjobs\.php$ index.php
|
|
Sebastian Gęsior
Postów: 13 od 20/03/2007
|
Poniedziałek 09 Lipiec 2007 11:19:40 am
Re: konfiguracja virtual host, cron jobs itp
Ehh, już trochę walczę z eZ i napotykałem wiele problemów - żaden jednak nie dał mi się tak we znaki, jak ten tutaj. Może dlatego, że temat .htaccess jest dla mnie jeszcze nieprzebytym szlakiem?;)
Bardzo proszę, jeśli możesz to wskaż mi, gdzie jest błąd, gdzie mam dopisać to, o czym wspomniałeś; a może sam umieścisz swój plik, skoro również masz konto na home.pl i zmagałeś się z tym problemem?
# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#
php_value allow_call_time_pass_reference 0
#<FilesMatch ".">
#order allow,deny
#deny from all
#</FilesMatch>
<FilesMatch "(index\.php|\.(gif|jpe?g|png|ico|swf|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>
# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".
#<Files "ezpublish-3.6.0">
# order allow,deny
# allow from all
#</Files>
RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|ico|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php
DirectoryIndex index.php
RewriteEngine On
RewriteCond %{HTTP_HOST} ^runcronjobs\..*
RewriteRule ^(.*) runcronjobs.php [L]
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]
RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [L]
RewriteRule ^var/cache/debug.html.* - [L]
RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
Rewriterule ^var/storage/.* - [L]
Rewriterule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
Rewriterule ^share/icons/.* - [L]
Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule .* index.php [L]
RewriteRule ^/favicon\.ico - [L]
:Location *.php
Use php4
Czasami trzeba temat wyoślić, bo nigdy go nie zamkniemy ;)
Z góry dziękuję i czekam na odpowiedź.
--
Pozdrawiam
|
|
Conrad Hex
Postów: 73 od 17/08/2006
|
Niedziela 19 Sierpień 2007 1:51:03 pm
Re: konfiguracja virtual host, cron jobs itp
witam
Ustawiam właśnie powiadomienia Ez zainstalowany na home.pl ponieważ nie do końca działa metoda uruchomienia crona pozwoliłem sobie skonsultować sie z Home poniżej cytat i kod ustawiony przez administrację:
...zwiazane jest to z faktem, iz nie podal Pan sciezki do programu wget,
co w przypadku uzywania funkcji exec uniemozliwia systemowi wywolanie
stosownego programu (brak zmiennych srodowiskowych PATH).....
<?php
system('/bin/wget --spider --quiet http://domene.pl/runcronjobs.php');
?>
Może żebrać myśli z całego wątka i napisać poradę od A do Z co zrobić aby uruchomić crona i ustawić poprawnie powiadomienia ?
pozdrawiam C.
|
|
Jonatan Polak
Postów: 1 od 19/12/2007
|
Sobota 22 Grudzień 2007 2:17:48 pm
Re: konfiguracja virtual host, cron jobs itp
Przy takich ustawieniach pliku htaccess wszystko pięknie chodzi ale... U mnie przynajmniej nie ładują się pliki flash, dlatego wprowadziłem lekkie zmiany i powstało coś takiego (teraz działa):
# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#
php_value allow_call_time_pass_reference 0
#<FilesMatch ".">
#order allow,deny
#deny from all
#</FilesMatch>
<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|swf|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>
# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".
#<Files "ezpublish-3.6.0">
# order allow,deny
# allow from all
#</Files>
RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|swf|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php
DirectoryIndex index.php
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]
RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [L]
RewriteRule ^var/cache/debug.html.* - [L]
RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
Rewriterule ^var/storage/.* - [L]
Rewriterule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
Rewriterule ^design/[^/]+/(stylesheets|images|flash|javascript)/.* - [L]
Rewriterule ^share/icons/.* - [L]
Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|images|flash|javascripts?)/.* - [L]
Rewriterule ^packages/styles/.+/(stylesheets|images|flash|javascript)/[^/]+/.* - [L]
RewriteRule .* index.php [L]
|
|
Przemysław Jackowiak
Postów: 44 od 28/04/2008
|
Środa 25 Czerwiec 2008 7:23:41 pm
Re: konfiguracja virtual host, cron jobs itp
W prezentowanym rozwiązaniu należałoby jeszcze uzupełnić regułę plików o rozszerzenie ico, ponieważ inaczej nie wyświetla się przykładowo favicon. Czyli reguła ta miałaby postać:
RewriteRule !\.(ico|gif|jpe?g|png|css|swf|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php
Być może na tej stronie (http://ez-publish.pl) właśnie tego brakuje i przez to przeglądarka nie pokazuje ikonki, do której link jest widoczny w źródle strony ;-)
|
|
pektusa gruszka
Postów: 1 od 25/02/2009
|
Środa 25 Luty 2009 8:56:19 pm
Re: konfiguracja virtual host, cron jobs itp
ZUPELNIE NIE ROZUMIEM TEGO ZAPISUU
|
|
P. O.
Postów: 5 od 11/02/2009
|
Sobota 25 Kwiecień 2009 8:45:32 pm
Re: konfiguracja virtual host, cron jobs itp
Witam.
Wciąż nie mogę poradzić sobie z wysyłaniem powiadomień o np. nowych postach. Jeżeli robię to ręcznie, tzn. dodaję odpowiedni kod do pliku index.php powiadomienia są wysyłane. Ale oczywiście nie chcę, aby w taki sposób to się odbywało. Mój plik .htaccess wygląda następująco (to nie jedyna wersja, z jaką testowałem wysyłanie powiadomień, index.php mam usunięty z adresu):
# Copy this file to a new file called .htaccess in your eZ Publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#
#<FilesMatch ".">
#order allow,deny
#deny from all
#</FilesMatch>
<FilesMatch "(^index\.php|favicon\.ico|index_treemenu\.php|\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>
# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-4.1.0" with base name of the directory
# where your eZ Publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-4.1.0" is "ezpublish-4.1.0".
#<Files "ezpublish-4.1.0">
# order allow,deny
# allow from all
#</Files>
RewriteEngine On
# Allow access to the index_treemenu.php file for a faster admin interface
RewriteRule content/treemenu/? index_treemenu.php
RewriteRule ^index_treemenu\.php - [L]
# Uncomment the line below if you placed your favicon at the root of your
# eZ Publish instance. It will then be served directly.
#RewriteRule ^favicon\.ico - [L]
# Uncomment the line below if you want you favicon be served from the standard design.
# You can customize the path to favicon.ico by replacing design/standard/images/favicon.ico
# by the adequate path.
#RewriteRule ^favicon.ico design/standard/images/favicon.ico [L]
RewriteRule ^design/standard/images/favicon\.ico - [L]
# Uncomment the line below once you set up the right robots.txt file
# In that case remember to also modify the FilesMatch rule abov
# More info here http://en.wikipedia.org/wiki/Robots.txt
#RewriteRule ^robots\.txt - [L]
# Uncomment the line below in case you are using
# Platform for Privacy Preferences Project ( P3P ) related files.
# In that case remember to also modify the FilesMatch rule above
# More info here : http://en.wikipedia.org/wiki/P3p
#RewriteRule ^p3p/(.+)\.xml - [L]
RewriteCond %{HTTP_HOST} ^runcronjobs\..*
RewriteRule ^(.*) runcronjobs.php [L]
RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf)$ index.php
DirectoryIndex index.php
Czy ktoś mógłby mi poradzić co jest nie tak, wiem, że ten wątek jest mielony dość długo...
|
|
Michal Slocinski
Postów: 4 od 16/12/2007
|
Poniedziałek 08 Listopad 2010 8:18:24 pm
Postanowiłem odgrzać temat :-)
Właśnie próbuję instalować eZ Publish 4.4 na home i niestety mam problem :-(
Podczas klikania przez instalator pojawia się błąd z AcceptInfoPath który zignorowałem, instalator zakończył się pomyślnie ale podczas gdy próbuję wejść na site'a z domyślnym .htaccess'em - pojawia się jeszcze raz ekran startowy instalatora.
To samo dzieje się gdy zastosuję .htaccess zaproponowany w tym wątku oraz w site.ini.append.php dodam wpis ForceVirtualHost=true oraz dodam mapowania sajtów do nazw hosta.
Czy ktoś może mi pomóc? Próbowałem na różne sposoby - z virtual host, bez, z dodawaniem index.php, bez - zawsze ten sam efekt - pojawia się pierwszy ekran instalatora :-/
Michał
wdrożenia eZ Publish: http://www.pixeltree.pl
|