Wirtualne serwery -Apache |
Wirtualne serwery -Apache |
5.04.2003, 12:26:41
Post
#1
|
|
Grupa: Zarejestrowani Postów: 60 Pomógł: 0 Dołączył: 5.04.2003 Skąd: Warszawa Ostrzeżenie: (0%) |
Jak postawić serwer wirtualny.
Mam Apache'a na kompie lokalnym pod nazawa localhost i chce coby mi sie pod http://stronka.localhost pojawiała jakas tam stronka i nie moge tego nijak zrobić... -------------------- "Dwie rzeczy są nieskończone: wszechświat i głupota ludzka. Co do tego pierwszego są jeszcze wątpliwości" - Albert Einstein
|
|
|
5.04.2003, 12:33:21
Post
#2
|
|
Grupa: Zarząd Postów: 1 512 Pomógł: 2 Dołączył: 22.04.2002 Skąd: Koszalin |
propozycja FoxServ i temat zalatwiony
tylko adres wpisuje sie http://localhost/ a nie http://strona.localhost -------------------- brak sygnaturki rowniez jest sygnaturką
|
|
|
5.04.2003, 12:50:07
Post
#3
|
|
Grupa: Zarejestrowani Postów: 60 Pomógł: 0 Dołączył: 5.04.2003 Skąd: Warszawa Ostrzeżenie: (0%) |
fajnie ale ja to na apache musze miec i musi byc tak, ze np. chata mam nie pod http:// stronka.pl/chat tylko pod http://chat.stronka.pl
-------------------- "Dwie rzeczy są nieskończone: wszechświat i głupota ludzka. Co do tego pierwszego są jeszcze wątpliwości" - Albert Einstein
|
|
|
6.04.2003, 00:08:45
Post
#4
|
|
Grupa: Zarejestrowani Postów: 148 Pomógł: 0 Dołączył: 4.04.2002 Skąd: starachowice Ostrzeżenie: (0%) |
update
abyś się za dużo nie nakombinował masz gotwce ####httpd.conf#### Kod ServerRoot "C:/apache"
Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 ServerType standalone PidFile logs/httpd.pid ScoreBoardFile "logs/apache_runtime_status" MaxRequestsPerChild 0 ThreadsPerChild 50 Port 80 ServerName localhost ServerAdmin webmaster@localhost DocumentRoot "C:/apache/htdocs" DefaultType text/plain ErrorLog "logs/error.log" LogLevel warn AccessFileName ".htaccess" <Files "~ ^.ht"> Order allow,deny Deny from all </Files> UseCanonicalName On HostnameLookups Off 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 CustomLog logs/access.log combined ServerSignature On Action application/x-httpd-php "/php/php.exe" ErrorDocument 404 "<center><h1><b>Nieprawidlowy adres</b></h1></center> ErrorDocument 401 "<center><h1><b>Bland autoryzacji</b></h1></center> <Directory "C:/"> AllowOverride None Options FollowSymLinks </Directory> <Directory "C:/apache/htdocs"> AllowOverride AuthConfig Options Indexes FollowSymLinks MultiViews Order allow,deny Allow from all </Directory> <Directory "C:/apache/users"> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec <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> <IfModule mod_userdir.c> UserDir "C:/apache/users/" </IfModule> <IfModule mod_dir.c> DirectoryIndex index.php index.php3 index.html </IfModule> <IfModule mod_mime.c> TypesConfig "conf/mime.types" </IfModule> <IfModule mod_mime_magic.c> MIMEMagicFile "conf/magic" </IfModule> <IfModule mod_alias.c> # Alias /icons/ "C:/apache/icons/" ScriptAlias /cgi-bin/ "C:/apache/cgi-bin/" ScriptAlias /php/ "c:/php/" <Directory "C:/apache/icons"> AllowOverride None Options Indexes MultiViews Order allow,deny Allow from all </Directory> <Directory "C:/apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> </IfModule> <IfModule mod_autoindex.c> IndexOptions FancyIndexing 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" AddDescription "Archiwum GZIP" .gz AddDescription "Archiwum tar" .tar AddDescription "Archiwum tar GZIP" .tgz ReadmeName "readme.txt" HeaderName "header.txt" IndexIgnore .* *~ * # HEADER* README* RCS CVS *,v *,t </IfModule> <IfModule mod_mime.c> AddEncoding x-compress Z AddEncoding x-gzip gz tgz 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 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 .se AddLanguage cz .cz AddLanguage ru .ru AddLanguage tw .tw AddLanguage zh-tw .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 AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3-source .phps # AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps AddType application/x-tar .tgz <IfModule mod_negotiation.c> LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw </IfModule> </IfModule> <IfModule mod_setenvif.c> # 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> NameVirtualHost strona1.localhost NameVirtualHost strona2.localhost <VirtualHost localhost > ServerName localhost ServerAdmin webmaster@localhost DocumentRoot "C:/apache/htdocs" ErrorLog "logs/error.log" CustomLog logs/access.log common </VirtualHost> <VirtualHost strona1.localhost > ServerName strona1.localhost ServerAdmin webmaster@strona1.localhost DocumentRoot "C:/apache/htdocs/strona1" ErrorLog "htdocs/strona1/error.log" CustomLog htdocs/strona1/access.log common </VirtualHost> <VirtualHost strona2.localhost > ServerName strona2.localhost ServerAdmin webmaster@strona1.localhost DocumentRoot "C:/apache/htdocs/strona2" ErrorLog "htdocs/strona2/error.log" CustomLog htdocs/strona2/access.log common </VirtualHost> ###hosts### Kod 127.0.0.1 localhost
127.0.0.1 strona1.localhost 127.0.0.1 strona2.localhost ten ostatni skopiuj do katalogu windows |
|
|
Wersja Lo-Fi | Aktualny czas: 20.05.2024 - 14:23 |