Page 1 of 1

Domain ist nicht unter http:// erreichbar aber mit www

Posted: 2005-03-26 14:14
by michael_berlin
Hallo laute,

ich hoffe Ihr könnt mir helfen wenn ich die Url eingebe http://expert-business.de/ kommt immer die fehler Mehldung:

Code: Select all

Die Seite kann nicht angezeigt werden. ............
Fehler: Server oder DNS kann nicht gefunden werden
aber dagegen wenn ich unter http://www.expert-business.de/ auf rufe geht es ich finde einfach den Fehler nicht.

Kann es sein das es an der Domain selber liegt das es nicht geht ich habe die bei united-domains.de Registriert und da brauch man die dann nur noch auf ein Server aufschalten.

Hier die httpd.conf:

Code: Select all

LoadModule pam_external_auth_module modules/mod_auth_pam_external.so
##
## httpd.conf -- Apache HTTP server configuration file
##

# This is the main server configuration file. See URL http://www.apache.org/
# fo: instructions.

# Do NOT simply read the instructions in here without understanding
# what they do, if you are unsure consult the online docs. You have been
# warned.  

# Originally by Rob McCool

# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file README.DSO in the Apache 1.3 distribution for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
#
# Documentation for modules is in "/home/httpd/manual/mod" in HTML format.
LoadModule env_module modules/mod_env.so
LoadModule define_module modules/mod_define.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule status_module modules/mod_status.so
LoadModule includes_module modules/mod_include.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule asis_module modules/mod_asis.so
LoadModule imap_module modules/mod_imap.so
LoadModule action_module modules/mod_actions.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule access_module modules/mod_access.so
#LoadModule anon_auth_module modules/mod_auth_anon.so
#
# The following is a more secure replacement for mod_auth_pam.
# 
# The purpose of this module is to retain the interface provided by
# mod_auth_pam, while accomplishing pam authentication as a non-root user.
# This is done by having the module rely on an external setuid-root program 
# named /usr/lib/autheticate.
#
# This module's interface is completely backwards compatible with that of
# mod_auth_pam.  The only addition is the AuthExternalAuthenticator apache
# directive that override's the external program's name.  
# Example:
# 	AuthExternalAuthenticator /some/pam/authenticator
#
# The default authenticator is "/usr/lib/authenticate".  The pam stack used by
# this module is "httpd".
#
# /usr/lib/authenticate is a simple setuid-root program that is run by a 
# program in order to check user credentials via pam.  It's use is as follows:
#
#	- authenticate is run by it's calling program
#	- calling program sends it the following data, each followed by
#	  a newline character ("n"):
#		o  service name (pam stack)
#		o  username
#		o  password
#	- authenticate then consults with the given pam stack and determines
#	  the user's credentials
#	- authenticate exits with '0' if the authentication succeeds.  Any other
#	  exit value indicates a failure.(1 indicates a password lookup failure)
#
# LoadModule pam_external_auth_module modules/mod_auth_pam_external.so
LoadModule auth_module modules/mod_auth.so
#LoadModule digest_auth_module modules/mod_auth_digest.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_module modules/mod_setenvif.so

# Extra Modules
LoadModule casp2_module modules/mod_casp2.so
#LoadModule php_module modules/mod_php.so
#LoadModule php3_module modules/libphp3.so
LoadModule php4_module modules/libphp4.so

# because mod_perl leaks, this is included by default
#LoadModule perl_module /usr/lib/apache/libperl.so

# make sure that this gets loaded first:
LoadModule ssl_module modules/libssl.so

#  Reconstruction of the complete module list from all available modules
#  (static and shared ones) to achieve correct module execution order.
#  [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
#ClearModuleList

# Extra Modules
#AddModule mod_php.c
#AddModule mod_php3.c
#AddModule mod_perl.c
#AddModule mod_casp2.c

# ServerType is either inetd, or standalone.

ServerType standalone

# If you are running from inetd, go to "ServerAdmin".

# Port: The port the standalone listens to. For ports < 1023, you will
# need httpd to be run as root initially.

Port 80

# HostnameLookups: Log the names of clients or just their IP numbers
#   e.g.   www.apache.org (on) or 204.62.129.132 (off)
# The default is off because it'd be overall better for the net if people
# had to knowingly turn this feature on.

HostnameLookups off

# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.  

# User/Group: The name (or #number) of the user/group to run httpd as.
#  On SCO (ODT 3) use User nouser and Group nogroup
#  On HPUX you may not be able to use shared memory as nobody, and the
#  suggested workaround is to create a user www and use that user.
#  NOTE that some kernels refuse to setgid(Group) or semctl(IPC_SET)
#  when the value of (unsigned)Group is above 60000; 
#  don't use Group nobody on these systems!

User httpd
Group httpd

# ServerAdmin: Your address, where problems with the server should be
# e-mailed.

ServerAdmin admin@raq1.dyndns.info

# ServerRoot: The directory the server's config, error, and log files
# are kept in.
# NOTE!  If you intend to place this on a NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation,
# you will save yourself a lot of trouble.

ServerRoot /etc/httpd

# BindAddress: You can support virtual hosts with this option. This option
# is used to tell the server which IP address to listen to. It can either
# contain "*", an IP address, or a fully qualified Internet domain name.
# See also the VirtualHost directive.

#BindAddress *

# ErrorLog: The location of the error log file. If this does not start
# with /, ServerRoot is prepended to it.

ErrorLog /var/log/httpd/error

# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.

LogLevel warn

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).

LogFormat "%v %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

# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.

CustomLog /var/log/httpd/access combined

# If you would like to have an agent and referer logfile uncomment the
# following directives.

#CustomLog logs/referer_log referer
#CustomLog logs/agent_log agent

# If you prefer a single logfile with access, agent and referer information
# (Combined Logfile Format) you can use the following directive.

#CustomLog logs/access_log combined

# PidFile: The file the server should log its pid to
PidFile /var/run/httpd.pid

# ScoreBoardFile: File used to store internal server process information.
# Not all architectures require this.  But if yours does (you'll know because
# this file is created when you run Apache) then you *must* ensure that
# no two invocations of Apache share the same scoreboard file.
ScoreBoardFile /var/log/httpd/httpd_status

# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename. 
#
#LockFile /var/lock/httpd.lock

# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e. use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you 
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.

ServerName raq1.dyndns.info

# UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
# Apache needs to construct a self-referencing URL (a url that refers back
# to the server the response is coming from) it will use ServerName and
# Port to form a "canonical" name.  With this setting off, Apache will
# use the hostname:port that the client supplied, when possible.  This
# also affects SERVER_NAME and SERVER_PORT in CGIs.
UseCanonicalName on

# CacheNegotiatedDocs: By default, Apache sends Pragma: no-cache with each
# document that was negotiated on the basis of content. This asks proxy
# servers not to cache the document. Uncommenting the following line disables
# this behavior, and proxies will be allowed to cache the documents.

#CacheNegotiatedDocs

# Timeout: The number of seconds before receives and sends time out

Timeout 300

# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.

KeepAlive On

# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We reccomend you leave this number high, for maximum performance.

MaxKeepAliveRequests 0

# KeepAliveTimeout: Number of seconds to wait for the next request

KeepAliveTimeout 15

# Server-pool size regulation.  Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).

# It does this by periodically checking how many servers are waiting
# for a request.  If there are fewer than MinSpareServers, it creates
# a new spare.  If there are more than MaxSpareServers, some of the
# spares die off.  These values are probably OK for most sites ---

MinSpareServers 10
MaxSpareServers 25

# Number of servers to start --- should be a reasonable ballpark figure.

StartServers 5

# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# Unix with it as it spirals down...

MaxClients 125

# MaxRequestsPerChild: the number of requests each child process is
#  allowed to process before the child dies.
#  The child will exit so as to avoid problems after prolonged use when
#  Apache (and maybe the libraries it uses) leak.  On most systems, this
#  isn't really needed, but a few (such as Solaris) do have notable leaks
#  in the libraries.

MaxRequestsPerChild 300000

# Proxy Server directives. Uncomment the following line to
# enable the proxy server:

#ProxyRequests On

# To enable the cache as well, edit and uncomment the following lines:

#CacheRoot /var/cache/httpd
#CacheSize 5
#CacheGcInterval 4
#CacheMaxExpire 24
#CacheLastModifiedFactor 0.1
#CacheDefaultExpire 1
#NoCache a_domain.com another_domain.edu joes.garage_sale.com

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the VirtualHost command

Listen 80
Listen 192.168.0.55:8080

# global ssl setup
<IfModule mod_ssl.c>
SSLSessionCache         dbm:/var/log/httpd/ssl_scache
SSLSessionCacheTimeout  300
SSLMutex                file:/var/log/httpd/ssl_mutex
SSLRandomSeed startup   file:/dev/urandom 512
SSLRandomSeed connect   builtin
</IfModule>

# uncomment this for debugging
#
#PerlModule Apache::Status
#<Location /mod_perl/>
#SetHandler perl-script
#PerlHandler Apache::Status
#</Location>

# let's assume that base-ssl does the right thing, the key and cert files 
# should always be there.  If there not, someone was messing with
# things they obviously should not have been.
<Perl>
use Apache::PerlSections();
use lib qw(/usr/sausalito/perl);
use CCE;
use Base::Httpd qw(httpd_get_vhost_conf_file);

my $cce = new CCE;
$cce->connectuds();

my @ssl_sites = $cce->find('Vsite', { 'SSL.enabled' => 1 }, { 'SSL.expires' => '^.+' });

# Only a temp variable until we go the whole hog.
my (@ssl_conf, $ip, $rewrite_rules, $proto, $ret);

# O.K. What we bassically want to do is build up new section in the conf file
# for SSL sections.
for my $oid (@ssl_sites)
{
    my ($ok, $vsite) = $cce->get($oid);
    my $conf_file = httpd_get_vhost_conf_file($vsite->{name});

    open HTTPD_CONF, "<$conf_file" or die "Can't open $conf_file: $!n";
   
    # reset
    @ssl_conf = ();
    
    while(<HTTPD_CONF>) 
    {
	    if ( /^<VirtualHost ([d.]+)>/o ) 
        {
	        $ip = $1;
            # skip everything before the VirtualHost entry since it doesn't need to be duplicated
            last;
	    }
    }

    # read the rest
    while(<HTTPD_CONF>)
    {
	    # These two are for the rewrite options
	    s/http/https/go if (/^Rewrite/);
	    s/80/443/go if (/^Rewrite/);
	    s#https://$vsite->{fqdn}/#https://$vsite->{fqdn}:443/# if (/^RewriteRule/);
        push @ssl_conf, $_;

	    # Hardcoded, issues with mod_perl and cobalt modules.
        if (/^</Virtual/ && (-f "$vsite->{basedir}/certs/certificate") && (-f "$vsite->{basedir}/certs/key")) 
        {
		    $PerlConfig .= "Listen $ip:443n";
		    $PerlConfig .= "<VirtualHost $ip:443>n";
		    $PerlConfig .= "SSLengine onn";
            if (-f "$vsite->{basedir}/certs/ca-certs")
            {
                $PerlConfig .= "SSLCACertificateFile $vsite->{basedir}/certs/ca-certsn";
            }
		    $PerlConfig .= "SSLCertificateFile $vsite->{basedir}/certs/certificaten";
		    $PerlConfig .= "SSLCertificateKeyFile $vsite->{basedir}/certs/keyn";
		    $PerlConfig .= join('', @ssl_conf);
	    }
    }
    close HTTPD_CONF;
}

$cce->bye('SUCCESS');

if (-f '/etc/DEBUG')
{
    print STDERR Apache::PerlSections->dump();
}
</Perl>

# redirect to the insecure port by default in case of browser issues
# the user can always check the ssl login box, if they want
RewriteEngine On
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteCond %{DOCUMENT_ROOT}            !-d
RewriteRule .*                          http://%1:444/error/forbidden.html [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/admin/?$                  http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/siteadmin/?$              http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}                ^([^:]+)
RewriteRule ^/personal/?$               http://%1:444/login.php [L,R]
RewriteCond %{HTTP_HOST}		^([^:]+)
RewriteRule ^/login/?$			http://%1:444/login.php [L,R]


# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP packets
# for multiple addresses. This can be accomplished with the ifconfig 
# alias flag, or through kernel patches like VIF.

# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See also the BindAddress entry.
 
#<VirtualHost host.some_domain.com>
#ServerAdmin webmaster@host.some_domain.com
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>
Include /usr/java/jakarta-tomcat/conf/mod_jk.conf-auto
# LoadModule jk_module modules/mod_jk.so
Include /etc/httpd/conf/vhosts/site2

Alias /phpmyadmin "/etc/phpMyAdmin-2.2.7-pl1/"



und Hier die vhosts/site2

Code: Select all

# 

owned by VirtualHost
NameVirtualHost 192.168.0.55

# frontpage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
Port 80
ServerRoot /etc/httpd
ResourceConfig /etc/httpd/conf/srm.conf
AccessConfig /etc/httpd/conf/access.conf

<VirtualHost 192.168.0.55>
ServerName www.expert-business.de
ServerAlias www1.expert-business.de www2.expert-business.de www.expert-business.de expert-business.de
ServerAdmin admin
DocumentRoot /home/.sites/143/site2/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST}                !^192.168.0.55(:80)?$
RewriteCond %{HTTP_HOST}                !^www.expert-business.de(:80)?$ [NC]
RewriteRule ^/(.*)                      http://www.expert-business.de/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))?           /home/.sites/143/site2/users/$1/web/$3
# BEGIN WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION.  DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler chiliasp .asp
AddHandler chiliasp .asa
</VirtualHost>

# end of VirtualHost owned section

Mfg
Michael

Re: Domain ist nicht unter http:// erreichbar aber mit www

Posted: 2005-03-26 14:43
by ticool
Bei mir gehen beide Seiten, hat sich das Problem erledigt?


Ansonsten würde ich auf falsche DNS Einträge tippen..
Schaumal nach DNS Einträgen wie A-Record *.deinedomain.de auf welche IP die weitergeleitet wird... Und natürlich auch .deinedomain.de


Gruß


ticool

Re: Domain ist nicht unter http:// erreichbar aber mit www

Posted: 2005-03-26 14:49
by wellenbrecher
Der Fehler liegt vermutlich im Name-Server.

Kontrolliere mal in den Zonendateien, was dort eingetragen ist.

So was ähnliches hatte ich auch mal.
Ich habe dann anstatt domain.de auch http://www.domain.de und mail.domain.de usw. aufgenommen. Dann musst du aber auch aufpassen, dass in der Reverse-Zone diese Einträge wieder auftauchen, sonst geht diese Auflösung auch nicht.

Im Apache habe ich folgendes drinnen:

serverName domain.de
ServerAlias http://www.domain.de
........... weitere Angaben.............


in der Zonendatei für http://www.domain.de steht

...... Auszug ......
domain.de IN A 192.168.0.18
http://www.domain.de IN CNAME donain.de.
mail.domain.de IN CNAME domain.de.
www1.domain.de IN CNAME domain.de.
...... Auszug ende .....

Ganz wichtig sind die Punkte am Ende, sonst wird die Domain noch mals angehangen !!!!!!!!!!!!! :wink:

So, hoffe, dass es dir weiterhilft.
MfG
S.R.

Re: Domain ist nicht unter http:// erreichbar aber mit www

Posted: 2005-03-26 14:50
by michael_berlin
Hallo,
ja ich hatte ein fehler gemacht

ich habe die Domain mit einem CNAME-Eintrag auf mein Server aufgeschalten stat mit der IPv4 und das war der fehler.

allso danke :oops:

mfg
Michael

Re: Domain ist nicht unter http:// erreichbar aber mit www

Posted: 2005-03-26 14:53
by wgot
Hallo,
michael_berlin wrote:http://expert-business.de/ kommt immer die fehler Mehldung:
bei mir geht's. Nimm mal testweise einen anderen Zugangsprovider (irgendeinen ByCall), ob's dann bei Dir auch geht.
ich habe die bei united-domains.de Registriert und da brauch man die dann nur noch auf ein Server aufschalten.
Das ist schon ein paar Monate her, hast Du die Domain jetzt erst frisch auf den Server geleitet? Dann könnte es am Nameservercaching liegen.

Wird die Serial im Nameservereintrag vom Provider automatisch gesetzt oder hast Du das von Hand gemacht? Da sollte keine "1" stehen sondern z.B. 2005032601.

Gruß, Wolfgang