Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Strony: 1

Użytkownik


Udalo mi sie skompilowac serwer apache2 wg opisu: http://dug.net.pl/texty/apache2.pdf, niestety po wydaniu komendy startujacej serwer pojawia sie problem:
box:/# apache2 startssl The startssl option is no longer supported. Please edit httpd.conf to include the SSL configuration settings and then use apachectl start.
Kiedy uruchamiam serwer wpisujac: apache2 start, to odpala go, lecz z tego co mi sie wydaje bez obslugi ssl`a. Oto wynik komendy ps:
box:/# ps aux | grep httpd root 6561 1.3 2.4 25776 12728 ? Ss 18:09 0:00 /usr/local/apache2/bin/httpd -k start daemon 6562 0.0 2.0 25776 10744 ? S 18:09 0:00 /usr/local/apache2/bin/httpd -k start daemon 6563 0.0 2.0 25776 10732 ? S 18:09 0:00 /usr/local/apache2/bin/httpd -k start daemon 6564 0.0 2.0 25776 10732 ? S 18:09 0:00 /usr/local/apache2/bin/httpd -k start daemon 6565 0.0 2.0 25776 10732 ? S 18:09 0:00 /usr/local/apache2/bin/httpd -k start daemon 6566 0.0 2.0 25776 10732 ? S 18:09 0:00 /usr/local/apache2/bin/httpd -k start root 6578 0.0 0.1 1928 716 pts/1 S+ 18:09 0:00 grep httpd
Moj plik httpd.conf wyglada nastepujaco:
ServerRoot "/usr/local/apache2"
Listen 127.0.0.1:80
listen 127.0.0.1:443
<IfModule !mpm_netware_module>
User daemon
Group daemon
</IfModule>
Servername 127.0.0.1
ServerAdmin you@example.com
DocumentRoot "/home/www/"
<Directory />
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
<Directory "/home/www">
Options Indexes FollowSymLinks
AllowOverride FileInfo
Order allow,deny
Allow from all
</Directory>
# katalogi uzytkownikow
UserDir www
<Directory /home/*/www>
AllowOverride None
Options +SymLinksIfOwnerMatch +IncludesNOEXEC
Options -ExecCGI -Indexes
order allow,deny
allow from all
</Directory>
# mod_rewrite support
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteLog "/usr/local/apache2/logs/rewrite.log"
RewriteLogLevel 9
</IfModule>
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php index.php4 index.php5
</IfModule>
AddDefaultCharset ISO-8859-2
<FilesMatch "^.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
ErrorLog logs/error_log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/apache2/cgi-bin/"
</IfModule>
<IfModule cgid_module>
</IfModule>
<Directory "/usr/local/apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
NameVirtualHost 127.0.0.1:80
NameVirtualHost 127.0.0.1:443
# sekcja virtualhost - przykladowy nowy Vhost bez obslugi SSl
<VirtualHost 127.0.0.1:80>
ServerAdmin admin@space
DocumentRoot /home/www/localhost
ServerName box
ErrorLog logs/localhost-error-log
CustomLog logs/localhost-access_log common
</VirtualHost>
# przykladowy nowy Vhost z obsluga SSl
<VirtualHost 127.0.0.1:443>
DocumentRoot /home/www/localhost
ServerName 127.0.0.1:443
ServerAdmin root@space
ErrorLog logs/localhost-error-log
CustomLog logs/localhost-access_log common
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLcertificateFile /usr/local/apache2/conf/ssl.crt/server.crt
SSLcertificateKeyFile /usr/local/apache2/conf/ssl.key/server.key
SetEnvIf User-Agent "." "MSIE."
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-respone-1.0
</VirtualHost>
# Ladowanie modulu php i obsluga parsowania ver4
LoadModule php4_module modules/libphp4.so
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
# Ladowanie modulu php i obsluga parsowania ver5
AddType application/x-httpd-php5 .php5
ScriptAlias /php/ "/usr/local/php5/bin/"
Action application/x-httpd-php5 "/php/php"
Offline



Administrator




Pewnie trzeba było poczytać mana, żeby wiedzieć jak uruchomić, pewnie jakoś tak: apache2 -D SSL .
Pozdro
Offline

Użytkownik


Dziala.
dzienx i pzdr C.
Offline
Strony: 1