Skocz do zawartości

Hertzz

Użytkownicy
  • Zawartość

    29
  • Rejestracja

  • Ostatnio

Posty napisane przez Hertzz


  1. /etc/httpd/conf/httpd.conf:

     

    #

    # This is the main Apache HTTP server configuration file. It contains the

    # configuration directives that give the server its instructions.

    # See <URL:http://httpd.apache.org/docs/2.2> for detailed information.

    # In particular, see

    # <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>

    # for a discussion of each configuration directive.

    #

    # Do NOT simply read the instructions in here without understanding

    # what they do. They're here only as hints or reminders. If you are unsure

    # consult the online docs. You have been warned.

     

    ServerRoot "/etc/httpd"

    Listen 80

     

    #LoadModule dummy_module /usr/lib/apache/mod_dummy.so

    #LoadModule php5_module /usr/lib/apache/libphp5.so

    Include /etc/httpd/conf/extra/httpd-phpmodules.conf

     

    User apache

    Group apache

     

    ServerAdmin admin@localhost

    DocumentRoot "/var/www/html"

    keepalive off

    <Directory /home/*>

      AllowOverride All

      Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes

    <Limit GET POST OPTIONS PROPFIND>

      Order allow,deny

      Allow from all

    </Limit>

    <LimitExcept GET POST OPTIONS PROPFIND>

      Order deny,allow

      Deny from all

    </LimitExcept>

    </Directory>

     

    <Directory />

      Options All

      AllowOverride All

    </Directory>

     

    <Directory "/var/www/html">

      Options Indexes FollowSymLinks

      AllowOverride All

      Order allow,deny

      Allow from all

      <IfModule mod_suphp.c>

      suPHP_Engine On

      suPHP_UserGroup webapps webapps

      </IfModule>

    </Directory>

     

    <IfModule dir_module>

      DirectoryIndex index.html index.htm index.shtml index.php index.php5 index.php4 index.php3 index.phtml index.cgi

    </IfModule>

     

    <FilesMatch "^\.ht">

     Order allow,deny

      Deny from all

      Satisfy All

    </FilesMatch>

     

    ErrorLog /var/log/httpd/error_log

    LogLevel warn

     

    <IfModule log_config_module>

      #replace %b with %O for more accurate logging

      <IfModule mod_logio.c>

      LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined

      LogFormat "%h %l %u %t \"%r\" %>s %O" common

      LogFormat "%O" bytes

     

      LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio

      </IfModule>

     

      CustomLog /var/log/httpd/access_log common

    </IfModule>

     

    <IfModule alias_module>

      # Include some DirectAdmin alias

      Include conf/extra/httpd-alias.conf

    </IfModule>

     

    <Directory "/var/www/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-gzip .tgz

      AddEncoding x-compress .Z

      AddEncoding x-gzip .gz .tgz

      AddType application/x-compress .Z

      AddType application/x-gzip .gz .tgz

      AddHandler cgi-script .cgi

      AddHandler type-map var

      AddType text/html .shtml

      AddOutputFilter INCLUDES .shtml

      AddType video/x-ms-asf .avi

      AddType video/mpeg .mpg

      AddType video/mpeg .mpeg

      AddType video/quicktime .mov

      AddType video/x-ms-wmv .wmv

    </IfModule>

     

    #EnableMMAP off

    #EnableSendfile off

     

    ################################################################################

    #######

    ################################################################################

    #######

    # Do not change anything in included files, because they are rewritten by DirectAdmin #

    ################################################################################

    #######

     

    # This is needed for PHP

    Include conf/extra/httpd-php-handlers.conf

     

    # Server-pool management (MPM specific)

    Include conf/extra/httpd-mpm.conf

     

    # Multi-language error messages

    Include conf/extra/httpd-multilang-errordoc.conf

     

    # Fancy directory listings

    Include conf/extra/httpd-autoindex.conf

     

    # Language settings

    Include conf/extra/httpd-languages.conf

     

    # User home directories

    #Include conf/extra/httpd-userdir.conf

     

    # Real-time info on requests and configuration

    Include conf/extra/httpd-info.conf

     

    # Virtual hosts

    Include conf/extra/httpd-vhosts.conf

     

    # Local access to the Apache HTTP Server Manual

    #Include conf/extra/httpd-manual.conf

     

    # Distributed authoring and versioning (WebDAV)

    Include conf/extra/httpd-dav.conf

     

    # Various default settings

    Include conf/extra/httpd-default.conf

     

    # Secure (SSL/TLS) connections

    Include conf/extra/httpd-ssl.conf

     

    # Deflate module settings

    Include conf/extra/httpd-deflate.conf

     

    # All the DirectAdmin vhosts

    Include conf/extra/directadmin-vhosts.conf

     

    # All suPHP directives

    Include conf/extra/httpd-suphp.conf

     

    # All the other includes needed by the custombuild script

    Include conf/extra/httpd-includes.conf

     

    ################################################################################

    #######

    # End of included files that are rewritten by DirectAdmin #

    ################################################################################

    #######

     

    <IfModule ssl_module>

    SSLRandomSeed startup builtin

    SSLRandomSeed connect builtin

    </IfModule>

     

     

    lighttpd dobra opcja, ale czy nie będzie się gryzło z DirectAdminem? czy on nie wymaga apache?


  2. OK, uznajmy tamto za nieważne. Teraz jest problem innej maści. Po utworzeniu wildcard dla domeny i zakładaniu nowych kont, strony użytkowników co prawda się wyświetlają, ale nie wyświetlają zawartości ich strony tylko stronę główną rpcs.pl (powinnobyć tak że http://www.rpcs.pl/~rysiu powinno wyświetlać się tutaj http://www.rysiu.rpcs.pl a tak nie jest) jak temu zaradzić?


  3. Witam ponownie, chciałbym odświeżyć temat bo nadal nie mogę poprawnie skonfigurować tych DNS?ów. Zbiorę w jedną całość informacje...Posiadam serwer VPS z zainstalowanym DA oraz własną domenę rpcs.pl (z włączonym wildcardem). Moim celem jest stworzenie darmowego hostingu dla znajomych zintegrowanego właśnie z tym panelem. Problem polega na tym, iż tworząc nowe konto użytkownika i przypisując mu np. domenę test.rpcs.pl ? strona użytkownika nie wyświetla się (natomiast wyświetla się gdy wpisuje w przeglądarce adres rpcs.pl/~test). Chciałbym, żeby była możliwość wejścia na stronę użytkownika przez jego domenę (np. wspomniana wyżej test.rpcs.pl).

     

    Wyciąg ze sprawdzania domeny:

     

    	  Sprawdzana nazwa to: rpcs.pl 
      Wykonuję polecenie: 
    
      host -t any rpcs.pl 
      rpcs.pl has address 78.46.185.94
      rpcs.pl name server ns1.statnet.pl
      rpcs.pl name server ns2.statnet.pl
      rpcs.pl start of authority	ns1.statnet.pl hostmaster.statnet.pl(
       		2009042300;serial (version)
       		10800;refresh period
       		3600;retry refresh this often
       		432000;expiration period
       		21600;minimum TTL
       		)
      rpcs.pl mail is handled (pri=10) by mail.rpcs.pl

     

    Wyciąg z panelu zarządzania DNS (od mojego usługodawcy)

    panelzarzadzniadns.png

     

    DNS Administration pod pozycją

     5whuhl.png

     

    mam następujące ustawienia:

    2zgu69k.png

    Co tu jest nie tak, że coś nie działa?


  4. Sprawdzana nazwa to: rpcs.pl 
    Wykonuję polecenie: 
    
    host -t any rpcs.pl 
    rpcs.pl has address 78.46.185.94
    rpcs.pl name server ns1.statnet.pl
    rpcs.pl name server ns2.statnet.pl
    rpcs.pl start of authority	ns1.statnet.pl hostmaster.statnet.pl(
     		2009042300;serial (version)
     		10800;refresh period
     		3600;retry refresh this often
     		432000;expiration period
     		21600;minimum TTL
     		)
    rpcs.pl mail is handled (pri=10) by mail.rpcs.pl

     

     

     

     

    Powyzsze ustawienia mam w ustawieniach DNS w panelu Direct Admin (czyli ns1.statnet.pl itd - serwery DNS mojego dostawcy), ale w momencie gdy dodaje nowego usera przypisuje mu np. adres test.rpcs.pl to w rezultacie otrzymuje wynik, iż nie ma takiej strony mimo iz na katalog usera wgrane są pliki.


  5. OK Serwery DNS mojego dostawcy już podpiąłem pod domenę, ale teraz kolejny błąd; bowiem gdy tworze konto uzytkownika przypisuje mu jakis adres *.rpcs.pl to gdy wchodze na ten adres *.rpcs.pl w rezultacie otrzymuje wiadomość od nazwa.pl "ta domena jest zaparkowana".... Jak temu zaradzic aby zamiast tej strony wyswietlala sie strona startowa uzytkownika?

     

    Czy może to być winą tego, iż serwery DNS przypsiałem około 15 minut temu i nie zdąrzyły się jeszcze przypisać? a po max 24h wszystko będzie śmigać?


  6. Posiadam własną domenę - a więc pytanie: w jaki sposób stworzyć do niej DNS'y?

     

    EDIT Napisze moze jeszcze w tym temacie, zeby nie spamować na forum:

    Czy jest jakiś sposób, żeby ograniczyć pamięc ram (np. przydzielić 256MB z zasobów) na aplikację DirectAdmin, gdyż aktualnie panoszy mi się na całą ilość zasobów uniemożliwiając symultaniczne uruchomienie innej usługi?

×