Witam. Czy mógłby mi ktoś wyjaśnić jak na tym serwerze postawić więcej niż jedną stronę. Domenę skonfigurowałem tak aby wskazywała na mój adres IP. Niestety strony które są w folderach się nie ładują bo nie wiem jak zrobić pod domeny oraz jak zrobić aby na przykład dostawca innej domeny wskazywał na konkretny folder ze stroną. Pozdrawiam.
D
Deleted member jarlath
Guest
Witam,
Po pierwsze polecam użycie opcji "Szukaj" - znajdziesz nawet tutorial, Po drugie od wersji firmware 3.3 będzie obsługiwane z GUI.
Po pierwsze polecam użycie opcji "Szukaj" - znajdziesz nawet tutorial, Po drugie od wersji firmware 3.3 będzie obsługiwane z GUI.
Witaj. Mam wersje oprogramowania 3.2.7 Build 0526T. Gdzie mam szukać ustawień subdomen w interfejsie graficznym.
D
Deleted member jarlath
Guest
Wklepałem w tym miejscu co w kodzie czy dobrze?
Kod:
#ServerType standalone
ServerRoot "/usr/local/apache"
#LockFile /usr/local/apache/logs/apache.lock
#PidFile /usr/local/apache/logs/apache.pid
#ScoreBoardFile /usr/local/apache/logs/apache.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
LoadModule php5_module modules/libphp5.so
Listen 80
User httpdusr
Group everyone
ServerAdmin admin@NAS
#ServerName domena
TraceEnable off
ServerTokens Prod
DocumentRoot "/share/Web"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/share/Web">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
UseCanonicalName Off
HostnameLookups Off
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
ErrorLog logs/error_log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
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
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access_log combined
</IfModule>
ServerSignature On
NameVirtualHost *:80
<VirtualHost *:80>
ServerName http://costam.pl
ServerAlias site1.com http://costam.pl
DocumentRoot "/share/Web/Moja_str"
<Directory "/share/Web/Moja_str">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog logs/error_log
CustomLog logs/erroracces_log
</VirtualHost>
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
D
Deleted member jarlath
Guest
Czy będzie dobrze - musisz sprawdzić sam 
Nie wiem po co
Polecam lekturę dokumentacji Apache - jeśli chcesz wiedzieć co się z czym je.
Ewentulanie zainstaluj Beta firmware 3.3 tam jest wsztstko dla GUIużytkowników..
Nie wiem po co
poza wszystkim https://forum.qnap.net.pl/threads/181/ masz wszystko jak na tacy...ServerAlias site1.com http://costam.pl
Polecam lekturę dokumentacji Apache - jeśli chcesz wiedzieć co się z czym je.
Ewentulanie zainstaluj Beta firmware 3.3 tam jest wsztstko dla GUIużytkowników..
Ostatnio edytowane przez moderatora:
Witam kolejny raz. Tym razem mam problem z plikiem apache.conf. Dodałem do niego linijke
Ale po zresetowaniu usługi ta linia
ciągle się resetuje i powraca do ustawienia.
Nie mogę znaleźć przyczyny.
Kod:
<VirtualHost *:80>
ServerName nazwa
ServerAlias http://www.nazwa.pl
DocumentRoot "/share/Web/test"
</VirtualHost>
Kod:
DocumentRoot "/share/Web/test"
Kod:
DocumentRoot "/share/Web/"
Ok spędziłem przy tym cały dzień i nic nie mogę znaleźć przyczyny dla której po zmianie ścieżki /share/Web/test i zresetowaniu servera www ścieżka powraca do /share/Web/test. Proszę o pomoc.
D
Deleted member jarlath
Guest
D
Deleted member jarlath
Guest
Wygląda jakby naspisywało plik po restarcie
Sprawdziłem u siebie na TS459 - mam co prawda firmware beta 3.3 ale:
zmodyfikowałem plik apache w podkatalogu /etc/config/apache/apache.conf (/etc/config ->/mnt/HDA_ROOT/.config/)
wstawiłem na początku pliku linijkę
zapisałem
Restart QNAP'a
Linijka pozostała
Wniosek: żaden proces startowy nie nadpisuje pliku - spróbuj może z inną wersją firmware
Sprawdziłem u siebie na TS459 - mam co prawda firmware beta 3.3 ale:
zmodyfikowałem plik apache w podkatalogu /etc/config/apache/apache.conf (/etc/config ->/mnt/HDA_ROOT/.config/)
wstawiłem na początku pliku linijkę
Kod:
#TEST
Restart QNAP'a
Linijka pozostała
Wniosek: żaden proces startowy nie nadpisuje pliku - spróbuj może z inną wersją firmware
Powiem tak. Ja mogę modyfikować ten plik. Po zresetowaniu usługi tylko linijka DocumentRoot "/share/Web/test" zmienia sie na DocumentRoot "/share/Web". Jesli dopisze coś innego np. <Directory /> </Directory> to to się nie zmienia tylko linia wskazująca skąd ma pobrać index nie chce się zapiać.
D
Deleted member jarlath
Guest
Witam,
Nic nie rozumiem z Twojej wypowiedzi...
Powiem tak. Na 100% się da - żeby podać Ci dokładną procedurę musiałbym zrobić downgrade firmware - jak już wspomniałem u mnie jest w GUI, ale i tak nie używam.
Na pewno nie możesz zmieniać (w znaczący sposób) istniejących dyrektyw
Twoje katalogi stron raczej powinny zawierać się w /share/Web jako kolejne podkatalogi
Czasami przydaje się odkomentowanie linii
Poczytaj sobie jeszcze:http://pop3.qnap.com/viewtopic.php?f=32&t=527&sid=1a448ebb86020f68a3d3eaf46b88a150&start=70
Nic nie rozumiem z Twojej wypowiedzi...
Powiem tak. Na 100% się da - żeby podać Ci dokładną procedurę musiałbym zrobić downgrade firmware - jak już wspomniałem u mnie jest w GUI, ale i tak nie używam.
Na pewno nie możesz zmieniać (w znaczący sposób) istniejących dyrektyw
Kod:
DocumentRoot "/share/Web"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/share/Web">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
Czasami przydaje się odkomentowanie linii
Kod:
#ServerName NAS
Poczytaj sobie jeszcze:http://pop3.qnap.com/viewtopic.php?f=32&t=527&sid=1a448ebb86020f68a3d3eaf46b88a150&start=70
Ok. Podaje cała zwartość pliku apache.conf. Morze ktoś znajdzie przyczynę dlaczego to wciąż nie chcę działać
Kod:
#ServerType standalone
ServerRoot "/usr/local/apache"
#LockFile /usr/local/apache/logs/apache.lock
#PidFile /usr/local/apache/logs/apache.pid
#ScoreBoardFile /usr/local/apache/logs/apache.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 0
LoadModule php5_module modules/libphp5.so
Listen 80
User httpdusr
Group everyone
ServerAdmin admin@NAS
#ServerName NAS
TraceEnable off
ServerTokens Prod
DocumentRoot "/share/Web"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
<Directory "/share/Web">
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.php
</IfModule>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
UseCanonicalName Off
HostnameLookups Off
<Directory "/usr/local/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
ErrorLog logs/error_log
#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
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
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog logs/access_log common
#
# If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive.
#
#CustomLog logs/access_log combined
</IfModule>
NameVirtualHost *80
<VirtualHost *:80>
ServerName www.mojastron.pl
ServerAlias http://www.test.mojastona.pl
DocumentRoot "/share/Web"
<Directory "/share/Web/test">
</Directory>
</VirtualHost>
ServerSignature On
#
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
<IfModule alias_module>
Alias /v3_menu/ "/home/httpd/v3_menu/"
<Directory "/home/httpd/v3_menu">
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule autoindex_module>
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
</IfModule>
#
# Document types.
#
<IfModule mime_module>
TypesConfig /etc/config/apache/mime.types
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage he .he
AddCharset ISO-8859-8 .iso8859-8
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage kr .kr
AddCharset ISO-2022-KR .iso-kr
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .sv
AddLanguage cs .cz .cs
AddLanguage ru .ru
AddLanguage zh-TW .zh-tw
AddCharset Big5 .Big5 .big5
AddCharset WINDOWS-1251 .cp-1251
AddCharset CP866 .cp866
AddCharset ISO-8859-5 .iso-ru
AddCharset KOI8-R .koi8-r
AddCharset UCS-2 .ucs2
AddCharset UCS-4 .ucs4
AddCharset UTF-8 .utf8
<IfModule negotiation_module>
LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
</IfModule>
AddType application/x-tar .tgz
AddEncoding x-compress .Z
AddEncoding x-gzip .gz .tgz
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php .php4 .php3 .phtml
AddType application/x-httpd-php-source .phps
AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler send-as-is asis
AddHandler imap-file map
AddHandler type-map var
</IfModule>
<IfModule mime_magic_module>
MIMEMagicFile /etc/config/apache/magic
</IfModule>
<IfModule setenvif_module>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
D
Deleted member jarlath
Guest
Witam,
A nie powinno być przypadkiem:
A nie powinno być przypadkiem:
Kod:
#Brakowało : pomiędzy * a 80
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.mojastron.pl
ServerAlias http://www.test.mojastona.pl
# root dla tego serwera - tam gdzie wrzucisz index
DocumentRoot "/share/Web/test"
#<Directory "/share/Web/test">
#</Directory>
</VirtualHost>