[Apache] - VirtualHost - Windows 2003 DNS

Trädvy Permalänk
Medlem
Plats
Borlänge
Registrerad
Maj 2003

[Apache] - VirtualHost - Windows 2003 DNS

Har nu setat sedan i förrgår och försökt få mina virtualhosts att fungera, men lyckas inte alls... Jag har satt ett A-record på domänen till min domänserver som skickar vidare den till webbservern (A-record)

Min httpd.conf fil ser ut som följande:

Listen 80 ServerName leffe.myftp.biz:80 ServerAdmin namn@namn.com ServerRoot "E:/www/Apache2" DocumentRoot "E:/www/webroot" ServerSignature On ServerTokens Full DefaultType text/plain AddDefaultCharset ISO-8859-1 UseCanonicalName Off HostnameLookups Off ErrorLog logs/error.log LogLevel warn PidFile logs/httpd.pid Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 <IfModule mpm_winnt.c> ThreadsPerChild 250 MaxRequestsPerChild 0 </IfModule> LoadModule access_module modules/mod_access.so #LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so #LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule dir_module modules/mod_dir.so #LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so LoadModule headers_module modules/mod_headers.so #LoadModule imap_module modules/mod_imap.so #LoadModule include_module modules/mod_include.so LoadModule info_module modules/mod_info.so #LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so #LoadModule negotiation_module modules/mod_negotiation.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so LoadModule vhost_alias_module modules/mod_vhost_alias.so <IfDefine SSL> LoadModule ssl_module modules/mod_ssl.so </IfDefine> LoadModule logio_module modules/mod_logio.so LoadModule deflate_module modules/mod_deflate.so LoadFile "/www/perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so PerlRequire "/www/Apache2/conf/extra.pl" LoadFile "/www/php4/php4ts.dll" LoadModule php4_module /www/php4/php4apache2.dll LoadModule security_module modules/mod_security.dll # Uncomment the below line ONLY after you have met the... # Prerequisites -- Requirements for Tomcat #LoadModule jk_module modules/mod_jk.so <IfModule mod_jk.c> JkWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel error JkLogStampFormat "[%a %b %d %H:%M:%S %Y] " JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories JkRequestLogFormat "%w %V %T" Alias /jsp-examples "/www/tomcat5/webapps/jsp-examples/" <Directory "/www/tomcat5/webapps/jsp-examples/"> Options Indexes +FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> Alias /servlets-examples "/www/tomcat5/webapps/servlets-examples/" <Directory "/www/tomcat5/webapps/servlets-examples/"> Options Indexes +FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> <Location /*/WEB-INF/*> AllowOverride None deny from all </Location> JkMount /jsp-examples/*.jsp example JkMount /servlets-examples/* example </IfModule> <IfModule mod_security.c> # Uncommenting all rulesets will slow down Apache # The most relevent/useful rulesets are set # Ruleset Version: up to 20060117-01 # Turns on and configures mod_security Include conf/modsec/modsec.conf # Exclusion rules Include conf/modsec/exclude.conf # Application protection rules Include conf/modsec/rules.conf # Comment spam rules # Include conf/modsec/blacklist.conf # Bad hosts, bad proxies and other bad players # Include conf/modsec/blacklist2.conf # Bad clients, known bogus useragents and other signs of malware Include conf/modsec/useragents.conf # Known bad software, rootkits and other malware Include conf/modsec/rootkits.conf # Signatures to prevent proxying through your server # Only set these rules if your server is NOT a proxy # Include conf/modsec/proxy.conf # Additional rules for Apache 2.x Include conf/modsec/apache2-rules.conf # Open proxies and other bad players # Include conf/modsec/badips.conf # Windows only rules # Include conf/modsec/windows-rules.conf # Search Engine Recon/Google Hacks Security Rules # Include conf/modsec/recons.conf </IfModule> <Location /> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/css <IfModule mod_headers.c> Header append Vary User-Agent </IfModule> </IfModule> </Location> <Directory /> Options None AllowOverride None Order allow,deny Deny from all </Directory> # If the use of htaccess files are not needed, # remove the next five lines for security reasons. AccessFileName .htaccess <FilesMatch "^\.ht"> Order allow,deny Deny from all </FilesMatch> <Directory "/www/webroot"> # If listing of files and directories or the use of htaccess files are not needed, # remove the next two lines for security reasons. Options Indexes AllowOverride All Order allow,deny Allow from all </Directory> <IfModule mod_auth.c> <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> Alias /private "/www/private" <Directory "/www/private"> <IfModule mod_autoindex.c> Options Indexes </IfModule> Order allow,deny Allow from all AuthType Basic AuthName "Private Access" AuthUserFile "/www/private/.htpasswd" require valid-user </Directory> </IfModule> <IfModule mod_cgi.c> ScriptAlias /cgi-bin/ "/www/cgi-bin/" <Directory "/www/cgi-bin"> Options None AllowOverride None Order allow,deny Allow from all </Directory> </IfModule> Alias /phpMyAdmin "/www/phpMyAdmin" <Directory "/www/phpMyAdmin"> Options None AllowOverride None Order deny,allow #Deny from all Allow from all </Directory> <Directory "/www/webroot/stats"> Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> <IfModule mod_log_config.c> LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog logs/access.log combined <IfModule mod_deflate.c> DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog logs/deflate.log deflate </IfModule> </IfModule> <IfModule mod_dir.c> DirectoryIndex index.html index.php </IfModule> <IfModule mod_mime.c> TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-rar-compressed .rar <IfModule mod_php4.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </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 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully <IfModule mod_deflate.c> BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html </IfModule> </IfModule> <IfModule mod_status.c> ExtendedStatus On <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> <IfModule mod_info.c> <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> <IfModule mod_perl.c> PerlModule Apache2::Status <Location /perl-status> SetHandler perl-script PerlResponseHandler Apache2::Status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> <IfModule mod_ssl.c> Include conf/ssl.conf </IfModule> ##### Start -- mod_perl Hello example, \www\perl\site\lib\Apache2\Hello.pm # <IfModule mod_perl.c> PerlModule Apache2::Hello <Location /hello> SetHandler modperl PerlResponseHandler Apache2::Hello Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> # ##### End -- mod_perl Hello example # # Commonly used filename extensions to character sets. You probably # want to avoid clashes with the language extensions, unless you # are good at carefully testing your setup after each change. # See http://www.iana.org/assignments/character-sets for the # official list of charset names and their respective RFCs. # AddCharset ISO-8859-1 .iso8859-1 .latin1 AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen AddCharset ISO-8859-3 .iso8859-3 .latin3 AddCharset ISO-8859-4 .iso8859-4 .latin4 AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk AddCharset ISO-2022-JP .iso2022-jp .jis AddCharset ISO-2022-KR .iso2022-kr .kis AddCharset ISO-2022-CN .iso2022-cn .cis AddCharset Big5 .Big5 .big5 # For russian, more than one charset is used (depends on client, mostly): AddCharset WINDOWS-1251 .cp-1251 .win-1251 AddCharset CP866 .cp866 AddCharset KOI8-r .koi8-r .koi8-ru AddCharset KOI8-ru .koi8-uk .ua AddCharset ISO-10646-UCS-2 .ucs2 AddCharset ISO-10646-UCS-4 .ucs4 AddCharset UTF-8 .utf8 # The set below does not map to a specific (iso) standard # but works on a fairly wide range of browsers. Note that # capitalization actually matters (it should not, but it # does for some browsers). # # See http://www.iana.org/assignments/character-sets # for a list of sorts. But browsers support few. # AddCharset GB2312 .gb2312 .gb AddCharset utf-7 .utf7 AddCharset utf-8 .utf8 AddCharset big5 .big5 .b5 AddCharset EUC-TW .euc-tw AddCharset EUC-JP .euc-jp AddCharset EUC-KR .euc-kr AddCharset shift_jis .sjis NameVirtualHost * # VirtualHost for: domain1.com # ----------------------------------- <VirtualHost *> ServerName domain1.com ServerAlias www.domain1.net domain1.net DocumentRoot "E:/www/webroot/domain1" ErrorLog "E:/www/webroot/domain1/logs/error.log" CustomLog "E:/www/webroot/domain1/logs/access.log" combined </VirtualHost> # VirtualHost for: domain2.com # ----------------------------- <VirtualHost *> ServerName domain2.com DocumentRoot "E:/www/webroot/domain2" </VirtualHost>

Någon som kan hjälpa mig? Jag kommer alltså bara till rooten av min webbserver när jag går in på domain1.com eller på domain2.com

/ Marcus

Trädvy Permalänk
Medlem
Registrerad
Jul 2004

Inte mycket microsoft i detta vad jag ser?
Inte direkt relaterat till 2003 DNS heller... pekar DNS:en ut webservern så är det ju webbsnurran som ska fånga upp det. Är det hostheaders du kör alltså så borde ju du kolla på vad som snackas mellan apachen och klienten och se så att det är rätt.

/G

CPU: I7 4770K Grafik: Poseidon Platinum GeForce GTX 980Ti Moderkort: Asus Maximus VI Hero Z87 RAM: 16Gb Corsair Dominator Platinum CL9 Nätagg: Corsair HX1050 Gold SSD: Corsair Force GT 240Gb SSHD: Seagate Desktop 4TB Låda: Corsair Graphite 600T

Trädvy Permalänk
Hedersmedlem
Plats
Bree
Registrerad
Feb 2002

*Flyttad*

STATIONÄR: CPU: 4790k @ 4.7 Ghz - GPU: ASUS GeForce GTX 1080 Ti 11GB STRIX GAMING OC - Minne: 16 GB Corsair Dominator - SSD: Samsung 850 Pro 500 GB - Skärm: Asus ROG SWIFT PG348Q Gsync 3440x1440
BÄRBAR: MacBook Air (2017)

Trädvy Permalänk
Medlem
Plats
Borlänge
Registrerad
Maj 2003

Det är mysko som fan, hittar inget fel

Trädvy Permalänk
Medlem
Plats
Mölndal
Registrerad
Jul 2005

Står det någonting i error_log'arna?

Kriga mot min brute: http://gunnard.se.mybrute.com om du vågar :D

Trädvy Permalänk
Medlem
Plats
Borlänge
Registrerad
Maj 2003

Nope, det är helt tomt där... Den verkar inte vilja använda de VirtualHost's jag satt upp :/