|
|||
XAMPP: Problem bei mehreren VirtualHosts
Hallo zusammen!
Ich habe lokal einige Web Projekte, die ich teilweise mit verschiedenen Web Frameworks entwickle (Symfony, Cake). Jetzt möchte ich diese Projekte gerne mal über eigene virtuelle Domains laufen lassen möchte, anstatt nur über localhost. Dafür habe ich die hosts Datei angepasst: Code:
127.0.0.1 projekt1.lokal projekt2.lokal Als nächstes habe ich die Virtuellen Hosts in der apache/conf/extra/httpd-vhosts.conf angelegt: Code:
<VirtualHost 127.0.0.1:80> ServerName projekt1.lokal DocumentRoot "C:\pfad\zum\projekt1" ErrorLog "logs/projekt1-error.log" CustomLog "logs/projekt1-access.log" combined DirectoryIndex index.php index.html <Directory "C:\pfad\zum\projekt1"> AllowOverride All Allow from All </Directory> </VirtualHost> Das funktioniert auch - allerdings nur für das erste Projekt! Die anderen Projekte werden scheinbar überschrieben. Habt ihr eine Idee, woran das liegen könnte? |
Sponsored Links |
|
|||
Hi,
bei mir hab ich so gemacht. XAMPP runtergeladen, entpackt, Setup gestartet und dann erst die Sicherheitseinstellungen oder so angepasst. Dann hab ich erst die hosts Datei entsprechend angepasst. Code:
127.0.0.1 localhost 127.0.0.1 test.localhost 127.0.0.1 steinchen Code:
NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerName localhost ServerAlias 127.0.0.1 DocumentRoot "C:/xampp/htdocs" </VirtualHost> ################################ <VirtualHost 127.0.0.1> ServerName test.localhost DocumentRoot "C:/www/htdocs1" DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm <Directory "C:/www/htdocs1"> AllowOverride All Options Indexes FollowSymLinks MultiViews Includes ExecCGI Order allow,deny Allow from all AddType text/html .shtml AddHandler server-parsed .shtml AddOutputFilter INCLUDES .shtml </Directory> ScriptAlias /cgi-bin/ "C:/www/htdocs1/cgi-bin/" <Directory "C:/www/htdocs1/cgi-bin"> AllowOverride None Options All AddHandler cgi-script .cgi .pl Order allow,deny Allow from all </Directory> </VirtualHost> ##################### <VirtualHost 127.0.0.1> ServerName steinchen DocumentRoot "C:/www/htdocs2" DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm <Directory "C:/www/htdocs2"> AllowOverride All Options Indexes FollowSymLinks MultiViews Includes ExecCGI Order allow,deny Allow from all AddType text/html .shtml AddHandler server-parsed .shtml AddOutputFilter INCLUDES .shtml </Directory> ScriptAlias /cgi-bin/ "C:/www/htdocs2/cgi-bin/" <Directory "C:/www/htdocs2/cgi-bin"> AllowOverride None Options All AddHandler cgi-script .cgi .pl Order allow,deny Allow from all </Directory> </VirtualHost>
__________________
Gruss Karlo |
Sponsored Links |
|
|||
Mhh..bei mir sieht's eigentlich sehr ähnlich aus. Vielleicht sollte ich XAMPP noch mal neu installieren und die VHosts neu einrichten...
Was genau hast du denn angepasst? Soweit ich mich erinneren kann, habe ich nur DocumentRoot (inkl. <Directory [...]>) angepasst und mod_rewrite aktiviert. |
|
||||
Schau dir deine hosts Datei an und nochmal die von Karlo ... fällt dir nix auf?
__________________
“My software never has bugs. It just develops random features ...” » DevShack - die Website des freien Webentwicklers Boris Bojic |
|
|||
Hi,
Zitat:
Dort kann man dann für das Xamppverzeichnis sowie für MySQL einen Namen und ein Passwort vergeben. Somit kommt da erst mal keiner ran. Dann erst hab ich weitere Anpassungen s.o. gemacht...
__________________
Gruss Karlo |
|
|||
Zitat:
XAMPP Update von 1.7.2 auf 1.7.3. hat auch nicht gebracht, also Neuinstallation... |
Stichwörter |
apache, virtualhost, xampp |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Problem mit Text neben Navigationsleiste | andi01 | CSS | 6 | 08.06.2011 17:54 |
Font der Überschrift ändern (Problem) | artist | CSS | 2 | 07.12.2007 11:01 |
Design zu CSS/HTML verarbeiten - Problem häufen sich. | Grafikamateur | CSS | 2 | 06.08.2007 10:57 |
Problem mit WordPress und dem Bilder Upload | Maxefix | Serveradministration und serverseitige Scripte | 0 | 19.12.2006 15:58 |
Problem bei Div's - zwei mal das gleiche und doch nicht ... | Niriel | CSS | 10 | 09.06.2005 18:39 |