mlodypc123
Użytkownicy-
Zawartość
5 -
Rejestracja
-
Ostatnio
Typ zawartości
Profile
Fora
Katalog firm
Wszystko napisane przez mlodypc123
-
Witam, Czy ktoś mógłby mi pomóc, dzisiaj przestał mi działać Apache na serwerze dla jednej z domen. Próby jego restart'u kończą się taką informacją: "Syntax error on line 4 of /var/www/vhosts/mojadomena.pl/conf/vhost.conf: <VirtualHost> cannot occur within <VirtualHost> section" poniżej zamieszczam pierwsze kilkanaście linijek vhost.conf Będę bardzo wdzięczny za pomoc. <IfModule mod_ssl.c> <VirtualHost 91.121.170.206:443> ServerName mojadomena.pl:443 ServerAlias www.mojadomena.pl UseCanonicalName Off SuexecUserGroup prawdziwo psacln ServerAdmin mojadomena@gmail.com DocumentRoot /var/www/vhosts/mojadomena.pl/httpdocs CustomLog /var/www/vhosts/mojadomena.pl/statistics/logs/access_ssl_log plesklog ErrorLog /var/www/vhosts/mojadomena.pl/statistics/logs/error_log <IfModule mod_userdir.c> UserDir /var/www/vhosts/mojadomena.pl/web_users </IfModule> ScriptAlias /cgi-bin/ /var/www/vhosts/mojadomena.pl/cgi-bin/ Alias /plesk-stat /var/www/vhosts/mojadomena.pl/statistics/ <Location /plesk-stat/> Options +Indexes </Location> <Location /plesk-stat/logs/> Require valid-user </Location> Alias /webstat /var/www/vhosts/mojadomena.pl/statistics/webstat Alias /webstat-ssl /var/www/vhosts/mojadomena.pl/statistics/webstat-ssl Alias /ftpstat /var/www/vhosts/mojadomena.pl/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/mojadomena.pl/statistics/anon_ftpstat Alias /awstats-icon /var/www/html/awstats SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certVl10777 <Directory /var/www/vhosts/mojadomena.pl/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)>
-
eh za szybko się ucieszyłem. zmiana w httpd.include faktycznie pomogła, ale po paru minutach Plesk samoczynnie nadpisał plik w pierwotnej formie znów jestem w punkcie wyjścia. z tego co wygrzebałem na webhostingtalk.com podają żeby nie edytować httpd.inlude ( bo on jest nadpisywany ) tylko wykorzystywać vhost.conf http://www.webhostingtalk.com/showthread.php?t=929683 czy ktoś ma może jeszcze jakieś pomysły?
-
Pomogło!!! Wielkie dzięki wszystkim, a w szczególności: Fiercio Wirtualne pifko dla każdego...
-
Ależ to jest irytujące... usunąłem :80 i :443 ale nie pomogło. Cały czas wyskakuje: Syntax error on line 3 of /var/www/vhosts/prawdziwysex.pl/conf/vhost.conf: <VirtualHost> cannot occur within <VirtualHost> section POMOCY:)!!!!
-
hey, zrobiłem tak jak napisałeś ale niestety nie pomogło poniżej wklejam cały kod <IfModule mod_ssl.c> <VirtualHost 91.121.170.206:433> ServerName mojadomena.pl ServerAlias www.mojadomena.pl UseCanonicalName Off SuexecUserGroup prawdziwo psacln ServerAdmin mojadomena@gmail.com DocumentRoot /var/www/vhosts/mojadomena.pl/httpdocs CustomLog /var/www/vhosts/mojadomena.pl/statistics/logs/access_ssl_log plesklog ErrorLog /var/www/vhosts/mojadomena.pl/statistics/logs/error_log <IfModule mod_userdir.c> UserDir /var/www/vhosts/mojadomena.pl/web_users </IfModule> ScriptAlias /cgi-bin/ /var/www/vhosts/mojadomena.pl/cgi-bin/ Alias /plesk-stat /var/www/vhosts/mojadomena.pl/statistics/ <Location /plesk-stat/> Options +Indexes </Location> <Location /plesk-stat/logs/> Require valid-user </Location> Alias /webstat /var/www/vhosts/mojadomena.pl/statistics/webstat Alias /webstat-ssl /var/www/vhosts/mojadomena.pl/statistics/webstat-ssl Alias /ftpstat /var/www/vhosts/mojadomena.pl/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/mojadomena.pl/statistics/anon_ftpstat Alias /awstats-icon /var/www/html/awstats SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certVl10777 <Directory /var/www/vhosts/mojadomena.pl/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/httpdocs:.:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/httpdocs:.:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> SSLRequireSSL Options -Includes +ExecCGI </Directory> <Directory /var/www/vhosts/mojadomena.pl/web_users> <IfModule sapi_apache2.c> php_admin_flag engine off </IfModule> <IfModule mod_php5.c> php_admin_flag engine off </IfModule> </Directory> <Directory "/var/www/vhosts/mojadomena.pl/statistics"> AuthType Basic AuthName "Domain statistics" AuthUserFile /var/www/vhosts/mojadomena.pl/pd/d..httpdocs@plesk-stat require valid-user </Directory> Alias "/error_docs" "/var/www/vhosts/mojadomena.pl/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ErrorDocument 405 /error_docs/method_not_allowed.html ErrorDocument 406 /error_docs/not_acceptable.html ErrorDocument 407 /error_docs/proxy_authentication_required.html ErrorDocument 412 /error_docs/precondition_failed.html ErrorDocument 415 /error_docs/unsupported_media_type.html ErrorDocument 501 /error_docs/not_implemented.html ErrorDocument 502 /error_docs/bad_gateway.html </VirtualHost> </IfModule> <VirtualHost 91.121.170.206:80> ServerName mojadomena.pl:80 ServerAlias www.mojadomena.pl UseCanonicalName Off SuexecUserGroup prawdziwo psacln ServerAdmin "mojadomena@gmail.com" DocumentRoot /var/www/vhosts/mojadomena.pl/httpdocs CustomLog /var/www/vhosts/mojadomena.pl/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/mojadomena.pl/statistics/logs/error_log <IfModule mod_userdir.c> UserDir /var/www/vhosts/mojadomena.pl/web_users </IfModule> ScriptAlias /cgi-bin/ /var/www/vhosts/mojadomena.pl/cgi-bin/ Redirect permanent /plesk-stat https://mojadomena.pl/plesk-stat Redirect permanent /webstat https://mojadomena.pl/webstat Redirect permanent /webstat-ssl https://mojadomena.pl/webstat-ssl Redirect permanent /ftpstat https://mojadomena.pl/ftpstat Redirect permanent /anon_ftpstat https://mojadomena.pl/anon_ftpstat Redirect permanent /awstats-icon https://mojadomena.pl/awstats-icon <IfModule mod_ssl.c> SSLEngine off </IfModule> <Directory /var/www/vhosts/mojadomena.pl/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/httpdocs:.:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/httpdocs:.:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> Options -Includes +ExecCGI </Directory> <Directory /var/www/vhosts/mojadomena.pl/web_users> <IfModule sapi_apache2.c> php_admin_flag engine off </IfModule> <IfModule mod_php5.c> php_admin_flag engine off </IfModule> </Directory> Alias "/error_docs" "/var/www/vhosts/mojadomena.pl/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ErrorDocument 405 /error_docs/method_not_allowed.html ErrorDocument 406 /error_docs/not_acceptable.html ErrorDocument 407 /error_docs/proxy_authentication_required.html ErrorDocument 412 /error_docs/precondition_failed.html ErrorDocument 415 /error_docs/unsupported_media_type.html ErrorDocument 501 /error_docs/not_implemented.html ErrorDocument 502 /error_docs/bad_gateway.html </VirtualHost> <IfModule mod_ssl.c> <VirtualHost 91.121.170.206:443> ServerName manager.mojadomena.pl:443 SuexecUserGroup prawdziwo psacln ServerAdmin "mojadomena@gmail.com" DocumentRoot /var/www/vhosts/mojadomena.pl/subdomains/manager/httpsdocs CustomLog /var/www/vhosts/mojadomena.pl/statistics/logs/access_ssl_log plesklog ErrorLog /var/www/vhosts/mojadomena.pl/statistics/logs/error_log ScriptAlias /cgi-bin/ /var/www/vhosts/mojadomena.pl/subdomains/manager/cgi-bin/ SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certVl10777 <Directory /var/www/vhosts/mojadomena.pl/subdomains/manager/httpsdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/subdomains/manager/httpsdocs:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/subdomains/manager/httpsdocs:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> SSLRequireSSL Options -Includes +ExecCGI </Directory> Alias "/error_docs" "/var/www/vhosts/mojadomena.pl/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ErrorDocument 405 /error_docs/method_not_allowed.html ErrorDocument 406 /error_docs/not_acceptable.html ErrorDocument 407 /error_docs/proxy_authentication_required.html ErrorDocument 412 /error_docs/precondition_failed.html ErrorDocument 415 /error_docs/unsupported_media_type.html ErrorDocument 501 /error_docs/not_implemented.html ErrorDocument 502 /error_docs/bad_gateway.html </VirtualHost> </IfModule> <VirtualHost 91.121.170.206:80> ServerName manager.mojadomena.pl:80 SuexecUserGroup prawdziwo psacln ServerAdmin "mojadomena@gmail.com" DocumentRoot /var/www/vhosts/mojadomena.pl/subdomains/manager/httpdocs CustomLog /var/www/vhosts/mojadomena.pl/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/mojadomena.pl/statistics/logs/error_log ScriptAlias /cgi-bin/ /var/www/vhosts/mojadomena.pl/subdomains/manager/cgi-bin/ <IfModule mod_ssl.c> SSLEngine off </IfModule> <Directory /var/www/vhosts/mojadomena.pl/subdomains/manager/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/subdomains/manager/httpdocs:.:/:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/mojadomena.pl/subdomains/manager/httpdocs:.:/:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> Options -Includes +ExecCGI </Directory> Alias "/error_docs" "/var/www/vhosts/mojadomena.pl/error_docs" ErrorDocument 400 /error_docs/bad_request.html ErrorDocument 401 /error_docs/unauthorized.html ErrorDocument 403 /error_docs/forbidden.html ErrorDocument 404 /error_docs/not_found.html ErrorDocument 500 /error_docs/internal_server_error.html ErrorDocument 405 /error_docs/method_not_allowed.html ErrorDocument 406 /error_docs/not_acceptable.html ErrorDocument 407 /error_docs/proxy_authentication_required.html ErrorDocument 412 /error_docs/precondition_failed.html ErrorDocument 415 /error_docs/unsupported_media_type.html ErrorDocument 501 /error_docs/not_implemented.html ErrorDocument 502 /error_docs/bad_gateway.html </VirtualHost>