S4Y - komisches Server Problem

Ich weiß nicht, was wo geändert wurde und woran es genau liegt, denn ich kenne deine Serverkonfiguration nicht.
Verzeih mir mein spätes Antworten aber ich hatte gerade Mittagspause...
Vielleicht solltest du Confixx dem DocumentRoot anpassen, da du das ja auch angepasst hast damit die Homepage geht, die ja verschoben wurde.
 
feel-free said:
wo steht das mit confixx zum ändern?
Je nach Confixx- & Server-Konfiguration:
httpd.conf
apache.conf
default-server.conf
confixx_mhost.conf

Es ist der VirtualHost, der keinen ServerName beinhaltet.

huschi.
 
Muss man Confixx auch extra starten wie apache?
(weil wie gesagt nur die webseite verschoben wurde, und am confixx gar nix)

Ich habe sogar testweise die Homepage, die ja jetzt wieder geht, wieder zurückgeschoben und die Pfade in der default-server.conf wieder so gemacht, wie sie waren, aber selbst dann geht confixx nicht mehr!

Edit: Bei "ps -ef" kommt immer noch kein "apache". Kanns an der Meldung von heute mittag liegen:
"Starting httpd2 (prefork) [Mon Feb 27 11:49:57 2006] [warn] NameVirtualHost XX.XX.XXX.XX:80 has no VirtualHosts"
 
Last edited by a moderator:
feel-free said:
Muss man Confixx auch extra starten wie apache?
Nein.

(weil wie gesagt nur die webseite verschoben wurde, und am confixx gar nix)
Was hast Du eigendlich von wo nach wo geschoben?
Und was hat diese Site mit default-server.conf zutun.

Bei "ps -ef" kommt immer noch kein "apache".
Das ist auch ein ganz unpassender Befehl dafür. Nimm diesen:
ps -aux |grep httpd

NameVirtualHost XX.XX.XXX.XX:80 has no VirtualHosts"
Look at this: NameVirtualHost XXX has no VirtualHosts

huschi.
 
Morgen Huschi,

das mit der Homepage hast doch du mir empfohlen in dem anderen Thread.
Wir hatten einen eigenen Benutzer erstellt (~webuser) und dadrin dann alle Webseiten reingemacht. Im Confixx war die weiterleitung dann halt http://bravoXXX.server4you.de/~webuser

Du hast gesagt, ich solle die Weiterleitung entfernen. Hab ich auch gemacht und die Dateien in das zugehörige Verzeichnis verschoben srv/www/webX/html. Somit blieb die Adresse der Web, wie sie sein soll, und wurde nicht mehr in die ellenlange Url aus dem anderen Thread umgewandelt.

Dann gabs ein Crash und keine einzige Webseite ging mehr (weil das Apache nicht gestartet war, nehme ich an) in der default-server.conf waren nämlich noch 2 Mal die "~webuser"-URL drin. Dann ging auf einmal die Webseite, aber Confixx streikte immer noch.

Bin mir aber nicht mehr sicher, ob das "Verschieben" was damit zu tun hat. Vielleicht ging bei dem Crash was kaputt? (Hab das mit der Hp einmal rückgangig gemacht und Confixx ging trotzdem nicht!)
Ich glaub ich frag mal einen "Fachmann"^^
 
feel-free said:
das mit der Homepage hast doch du mir empfohlen in dem anderen Thread.
Ich empfehle viel, wenn der Tag lang ist. Falls Du mal auf den Thread stößt poste mal einen Link. Denn sonst kann ich mich an nichts erinnern. :)

Im Confixx war die weiterleitung dann halt http://bravoXXX.server4you.de/~webuser
Ach dieser Thread.
Aber da war noch nichts besonderes dabei. Und da stand nix von eine default-server.conf drin.

und die Dateien in das zugehörige Verzeichnis verschoben
Jetzt nähern wir uns meiner ursprünglichen Frage, aber die Antwort bleibt dennoch aus: Von wo nach wo und welchen Befehl hast Du benutzt?

in der default-server.conf waren nämlich noch 2 Mal die "~webuser"-URL drin.
Hast Du die default-server.conf selber angelegt?

huschi.
 
Auf die default-server.conf kam ich auch erst in diesem Thread, weil beim Starten von Apache die am Anfang gepostet Fehlermeldung kam.
(bis zum Chrash lief alles fehlerfrei!)

Verschoben hab ich das ganze nicht durch einen Befehl, sondern mit WinSCP. (Einfach per Drag&Drop^^). Von wo nach wo hab ich doch geschrieben (von home/webuser/public_html nach srv/www/webX/html)

Und die Default... hab ich net selber angelegt. Die war schon da.
 
Verschoben hab ich das ganze nicht durch einen Befehl, sondern mit WinSCP.
Nebenbei: Hast Du den Benutzer auch richtig gesetzt?

Und die Default... hab ich net selber angelegt. Die war schon da.
Aber Du hast sie verändert?

Poste oder attache doch mal die Dateien default-server.conf und confixx_mhost.conf (falls vorhanden).

huschi.
 
Der Benutzer ist jetzt zwar gar nicht mehr in Benutzung, aber ich denke schon, denn vor dem Verschieben/Crash hatten wir keine Probleme.

default-server.conf
HTML:
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
	AllowOverride None
	Options +ExecCGI -Includes
	Order allow,deny
	Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
	# Note that the name of the user directory ("public_html") cannot simply be
	# changed here, since it is a compile time setting. The apache package
	# would have to be rebuilt. You could work around by deleting
	# /usr/sbin/suexec, but then all scripts from the directories would be
	# executed with the UID of the webserver.
	UserDir public_html
	# The actual configuration of the directory is in
	# /etc/apache2/mod_userdir.conf.
	Include /etc/apache2/mod_userdir.conf
	# You can, however, change the ~ if you find it awkward, by mapping e.g.
	# http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/ 
	#AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf

ne *mhost hab ich net, nur ne confixx_vhost.conf:

HTML:
#### CONFIXX APACHE VHOST FILE ####
   ### created Sat Feb 25 20:06:02 2006 ###

NameVirtualHost 85.25.XXX.XXX:80
php_admin_flag safe_mode On
php_admin_value safe_mode_exec_dir /srv/www/empty

UseCanonicalName Off
LogFormat "%V:#:%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx
LogFormat "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\"" confixx2
CustomLog |/usr/local/confixx/pipelog.pl confixx
<Directory "/srv/www">
<Files ~ "^\.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options -FollowSymLinks -SymLinksIfOwnerMatch +Includes
</Directory>


<VirtualHost 85.25.XXX.XXX:80>
ServerName 85.25.XXX.XXX
DocumentRoot /srv/www/confixx/html/gesperrt
</VirtualHost>
<VirtualHost 85.25.XXX.XXX:80>
ServerName thekiller-fighterz.de
ServerAlias  webX.bravoXXX.server4you.de www.DOMAIN.de
DocumentRoot /srv/www/web1/html
SuexecUserGroup web1 ftponly
ScriptAlias /cgi-bin/ /srv/www/web1/html/cgi-bin/
php_admin_value open_basedir /srv/www/web1/:/srv/www/htdocs/phpMyAdmin/:/srv/www/htdocs/confixx/html/gesperrt/
php_admin_value upload_tmp_dir /srv/www/web1/phptmp/
</VirtualHost>

Die IP ist hier jedes Mal die gleiche.
 
feel-free said:
default-server.conf
Code:
</Directory>
Wenn das wirklich der Anfang ist, dann ist diese Zeile zuviel.

Code:
<VirtualHost 85.25.XXX.XXX:80>
ServerName 85.25.XXX.XXX
DocumentRoot /srv/www/confixx/html/gesperrt
</VirtualHost>
Und dieser Bereich ist dafür zuständig, daß Confixx nicht aufgerufen wird.

Vergleiche mit meinem Post von Gestern, 18:02:
huschi said:
Es ist der VirtualHost, der keinen ServerName beinhaltet.
Es war vieleicht schlecht ausgedrückt, aber letztlich meinte es genau dies:
Ein VirtualHost ohne Domain.

huschi.
 
Ups.. war nicht der Anfang. Hier nochmal die Defaul-server.conf

HTML:
#
# Global configuration that will be applicable for all virtual hosts, unless
# deleted here, or overriden elswhere.
# 

DocumentRoot "/srv/www/web1/html"

#
# Configure the DocumentRoot
#
<Directory "/srv/www/web1/html">
	# Possible values for the Options directive are "None", "All",
	# or any combination of:
	#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
	#
	# Note that "MultiViews" must be named *explicitly* --- "Options All"
	# doesn't give it to you.
	#
	# The Options directive is both complicated and important.  Please see
	# http://httpd.apache.org/docs-2.0/mod/core.html#options
	# for more information.
	Options None
	# AllowOverride controls what directives may be placed in .htaccess files.
	# It can be "All", "None", or any combination of the keywords:
	#   Options FileInfo AuthConfig Limit
	AllowOverride None
	# Controls who can get stuff from this server.
	Order allow,deny
	Allow from all
</Directory>

# Aliases: aliases can be added as needed (with no limit). The format is 
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the 
# realname must also be slash terminated, and if the fakename omits the 
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If you
# do not use FancyIndexing, you may comment this out.
#
Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
	Options Indexes MultiViews
	AllowOverride None
	Order allow,deny
	Allow from all
</Directory>

# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"

# "/srv/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/srv/www/cgi-bin">
	AllowOverride None
	Options +ExecCGI -Includes
	Order allow,deny
	Allow from all
</Directory>

# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
# To disable it, simply remove userdir from the list of modules in APACHE_MODULES 
# in /etc/sysconfig/apache2.
#
<IfModule mod_userdir.c>
	# Note that the name of the user directory ("public_html") cannot simply be
	# changed here, since it is a compile time setting. The apache package
	# would have to be rebuilt. You could work around by deleting
	# /usr/sbin/suexec, but then all scripts from the directories would be
	# executed with the UID of the webserver.
	UserDir public_html
	# The actual configuration of the directory is in
	# /etc/apache2/mod_userdir.conf.
	Include /etc/apache2/mod_userdir.conf
	# You can, however, change the ~ if you find it awkward, by mapping e.g.
	# http://www.example.com/users/karl-heinz/ --> /home/karl-heinz/public_html/ 
	#AliasMatch ^/users/([a-zA-Z0-9-_.]*)/?(.*) /home/$1/public_html/$2
</IfModule>


# Include all *.conf files from /etc/apache2/conf.d/.
#
# This is mostly meant as a place for other RPM packages to drop in their
# configuration snippet.
#
# You can comment this out here if you want those bits include only in a
# certain virtual host, but not here.
#
Include /etc/apache2/conf.d/*.conf

# The manual... if it is installed ('?' means it won't complain)
Include /etc/apache2/conf.d/apache2-manual?conf

Wie kein Servername? Da steht doch: ServerName 85.25.XXX.XXX
 
Huschi said:
Hier sollte eigendlich das Webverzeichnis von Confixx stehen.

Vorher stand da aber /home/webuser/public_html

Das war die Webseite und net Confixx. Und es ging ja.

Und die IP stand doch als Name vorher sicher auch schon da...ich blick nimmer durch.
An der Datei default-server.conf habe ich nur
  • DocumentRoot "/srv/www/web1/html" und
  • <Directory "/srv/www/web1/html">

von "/home/webuser/public_html" angepasst. Sonst nix!
 
Winner said:
http://85.25.132.10/ oder hier öffnen: confixx.bravo553.server4you.de
Nun, da endlich mal jemand Farbe bekennt und sagt, wie die Maschine heißt erschließt, sich eine neue Perspektive:
Es wird ein 403-Fehler gemeldet!

Also ist vorallem ein Blick ins error_log fällig.

huschi.
 
Eintrag aus der Error-Log:

[Tue Feb 28 10:44:35 2006] [error] [client 84.174.95.35] client denied by server configuration: /srv/www/confixx/html/

Also das Verzeichnis gibts mitsamt index.php
 
[tKF]Winner said:
Also das Verzeichnis gibts mitsamt index.php
Das bezweifelt hier auch keiner. Das ist auch nicht das Thema der Fehlermeldung. Sonst würde die lauten "don't exist" o.ä.

Nein, die Meldung lautet "client denied".
Evlt. sind die Rechte bei der hin und her kopiererei verändert worden.

huschi.
 
Das interessante an der Geschichte is ja dass sich nichts verändert hat ausser dass der Kollege da oben den Document Root von home/webuser/plublic_html/ auf srv/www/web1/html/ umgeschrieben hat...

In den Ordnern da find ich aber auch keine .htaccess und nix...

EDIT: Mit fällt grad auf dass der owner in srv/www/confixx ein anderer ist (wwwrun) als der der anderen Ordner in srv/www
 
Last edited by a moderator:
Back
Top