Website (Projekt) innerhalb des Netzwerks aufrufen (Browser

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 19. May 2016 21:05

In Ordnung, dann werde ich das Morgen mal testen Morgen.
Das kann ein beliebiges HTML Dkument sein, ja? Einfach eins, das etwas ausgibt.

Wenn es die Seite aufruft, dann heißt es, dass in einen der Dateien aus dem Tippspiel noch etwas falsch konfiguriert ist, richtig?
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby Altrea » 19. May 2016 21:19

philipp971 wrote:Das kann ein beliebiges HTML Dkument sein, ja? Einfach eins, das etwas ausgibt.

Da war ich vielleicht etwas unspezifisch.

Erstelle am besten eine Datei namens index.html mit folgendem Inhalt
Code: Select all
<h1>Dat funzt!</h1>


Der Dateiname ist wichtig, also nimm keinen anderen als index.html

philipp971 wrote:Wenn es die Seite aufruft, dann heißt es, dass in einen der Dateien aus dem Tippspiel noch etwas falsch konfiguriert ist, richtig?

Das ist derzeit nur eine Vermutung, aber aus meiner Sicht ist diese schon sehr wahrscheinlich mindestens eine der Ursachen.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 20. May 2016 05:51

So meinst du das - alles klar.

Nun gut, dann werde ich das nacher einmal ausprobieren.
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 20. May 2016 07:48

Hier befindet sich der Quelltext der drei Dateien:

httpd.conf:

Code: Select all
DocumentRoot "C:/xampp/htdocs"
DocumentRoot "C:/xampp/htdocs/em2016"
<Directory "C:/xampp/htdocs">



hosts:

Code: Select all
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost

127.0.0.1           localhost   
127.0.0.1          em2016.vs www.em2016.vs



httpd-vhosts.conf:

Code: Select all
NameVirtualHost *:80
<VirtualHost *:80>
    DocumentRoot C:/Pfad/zum/localhost/htdocs
    ServerName localhost
</VirtualHost>

NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1>
   ServerName localhost
   AddType text/html .shtml
   AddHandler server-parsed .shtml
   ServerAdmin webmaster@localhost
   DocumentRoot "C:/xampp/htdocs"
   ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin"
   
   <Directory "C:/xampp/htdocs">
   Options Indexes FollowSymLinks
   Options +Includes
#   Options +
   AllowOverride FileInfo
   AllowOverride None
   Order allow,deny
   Allow from all
   DirectoryIndex index.php index.shtml index.html index.htm
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Require all granted
   </Directory>
</VirtualHost>

<VirtualHost 127.0.0.1>
   ServerName www.em2016.vs
   ServerAlias em2016.vs
   AddType text/html .shtml
   AddHandler server-parsed .shtml
   ServerAdmin webmaster@em2016.vs
   DocumentRoot "C:/xampp/htdocs_em2016"
   ServerAlias /cgi-bin/ "C:/xampp/htdocs_em2016/cgi-bin/"
   
   <Directory "C:/xampp/htdocs_em2016">
   Options Indexes FollowSymLinks
   Options +Includes
#   Options +
   AllowOverride FileInfo
   AllowOverride None
   Order allow,deny
   Allow from all
   DirectoryIndex index.php index.shtml index.html index.htm
   Options Indexes FollowSymLinks Includes ExecCGI
   AllowOverride All
   Require all granted
   </Directory>
</VirtualHost>



Viele Grüße,
Philipp
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 20. May 2016 08:10

Auch mit der Index.html funktioniert es leider nicht.
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 20. May 2016 08:45

Ich versuche nun eine komplette Neuinstallation und werde entsprechend bei Erfolg berichten

Danke für die Hilfe!
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Re: Website (Projekt) innerhalb des Netzwerks aufrufen (Brow

Postby philipp971 » 20. May 2016 09:32

So, jetzt hat es geklappt. Habe xampp deinstalliert, neu installiert. Und dann über phpmyadmin die datenbank angelegt, den dump dort reingeladen, einen User erstellt und die Rechte für die DB gegeben.
Anschließend das alles in der inc.config.php des Tippspiels eingetragen, statt localhost die statische IP vergeben welche die VM besitzt und dann über den Namen, welche die VM in unserem Netzwerk hat (oder halt die IP Adresse) im Browser die Website des Tippspiels aufgerufen.

Andere Dateien habe ich vollkommen unberührt gelassen.
philipp971
 
Posts: 14
Joined: 19. May 2016 14:50
XAMPP version: 5.5.34
Operating System: Windows 7

Previous

Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 32 guests