Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

apache vhost werkt niet voor sommige domeinnamen

Pagina: 1
Acties:

  • Gijs007
  • Registratie: Februari 2008
  • Laatst online: 30-11 11:14
Ik heb mijn apache vhost als volg ingesteld:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<VirtualHost *:80>
ServerName xgclan.com
ServerAlias www.xgclan.com
DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs"
</VirtualHost>

<VirtualHost *:80>
  ServerName www.haloservers.nl
  ServerAlias haloservers.nl
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost *:80>
  ServerName haloservers.us
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost *:80>
  ServerName haloservers.net
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost xhalo.tk:80>
  ServerName xhalo.tk
  ServerAlias sapp.xgclan.com
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\sapp"
</VirtualHost>


Echter doet alleen het laatste domein naam xhalo.tk redirecten naar de correcte website.
Alle andere domeinnamen redirecten naar de main website op www.xgclan.com

De domein namen linken nu naar de correcte website, maar de main website www.xgclan.com gaat ook naar de server folder... :(

Note: De domeinnamen zijn net nieuw dus het kan tot 24 uur duren voordat ze bij iedereen werken.

[ Voor 15% gewijzigd door Gijs007 op 03-04-2012 21:46 ]

AMD Ryzen 7 9800X3D | Corsair H150i Elite LCD | GIGABYTE X670E AORUS XTREME | G.Skill Trident Z F5-7800J3646H16GX2-TZ5RK | Inno3D GeForce RTX 4090 iCHILL X3 | Corsair HX1000i | Crucial T700 4TB | Intel Optane 905P 1.5TB | MP600 NH 8TB | Corsair iCUE 5000T


  • FiscBiker
  • Registratie: April 2003
  • Laatst online: 23:07
De domeinnaam hoort niet thuis op de <VirtualHost ...>-regel

Zie docs

  • Gijs007
  • Registratie: Februari 2008
  • Laatst online: 30-11 11:14
FiscBiker schreef op dinsdag 03 april 2012 @ 21:05:
De domeinnaam hoort niet thuis op de <VirtualHost ...>-regel

Zie docs
Ik heb het aangepast maar dit maakt geen verschil.

AMD Ryzen 7 9800X3D | Corsair H150i Elite LCD | GIGABYTE X670E AORUS XTREME | G.Skill Trident Z F5-7800J3646H16GX2-TZ5RK | Inno3D GeForce RTX 4090 iCHILL X3 | Corsair HX1000i | Crucial T700 4TB | Intel Optane 905P 1.5TB | MP600 NH 8TB | Corsair iCUE 5000T


  • Shuriken
  • Registratie: November 1999
  • Laatst online: 22-11 17:32

Shuriken

Life is all about priorities

Misschien deze nog even lezen?

I rather have a bottle in front of me, then a frontal lobotomie


  • sander85
  • Registratie: Mei 2003
  • Laatst online: 28-11 09:35
Hoezo redirect xhalo.tk naar de 'correcte website' (www.xgclan.com?). Wat zorgt voor die redirect? Heb je ook alleen http://xgclan.com geprobeert? Je hebt immers geen ServerAlias www.xgclan.com aangemaakt.

Ik zie helemaal geen www.xgclan.com in je config staan. Alles moet dus doorsturen naar een andere server, naar www.xgclan.com?

[ Voor 25% gewijzigd door sander85 op 03-04-2012 21:19 ]


  • Gijs007
  • Registratie: Februari 2008
  • Laatst online: 30-11 11:14
sander85 schreef op dinsdag 03 april 2012 @ 21:16:
Hoezo redirect xhalo.tk naar de 'correcte website' (www.xgclan.com?). Wat zorgt voor die redirect? Heb je ook alleen http://xgclan.com geprobeert? Je hebt immers geen ServerAlias www.xgclan.com aangemaakt.
De domein namen xgclan.com en xhalo.tk werkte altijd goed tot dat ik de haloserver domein namen toevoegde.

AMD Ryzen 7 9800X3D | Corsair H150i Elite LCD | GIGABYTE X670E AORUS XTREME | G.Skill Trident Z F5-7800J3646H16GX2-TZ5RK | Inno3D GeForce RTX 4090 iCHILL X3 | Corsair HX1000i | Crucial T700 4TB | Intel Optane 905P 1.5TB | MP600 NH 8TB | Corsair iCUE 5000T


  • sander85
  • Registratie: Mei 2003
  • Laatst online: 28-11 09:35
De xgclan.com config is ook een virtualhost config?

Dus iets als:
code:
1
2
3
4
5
<VirtualHost *:80>
ServerName xgclan.com
ServerAlias www.xgclan.com
DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

  • Gijs007
  • Registratie: Februari 2008
  • Laatst online: 30-11 11:14
sander85 schreef op dinsdag 03 april 2012 @ 21:22:
De xgclan.com config is ook een virtualhost config?

Dus iets als:
code:
1
2
3
4
5
<VirtualHost *:80>
ServerName xgclan.com
ServerAlias www.xgclan.com
DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>
Yup heb het net aangepast nu opent de main site wel gewoon, alleen de haloserver domeinen openen niet goed.
Alle links binnen deze site's gaan naar https://www.xgclan.com/link/

Bijvoorbeeld als je op FAQ drukt ga je naar: https://www.xgclan.com/faq
In plaats van: https://haloserver.us/faq

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<VirtualHost *:80>
ServerName xgclan.com
ServerAlias www.xgclan.com
DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs"
</VirtualHost>

<VirtualHost *:80>
  ServerName www.haloservers.nl
  ServerAlias haloservers.nl
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost *:80>
  ServerName haloservers.us
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost *:80>
  ServerName haloservers.net
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\servers"
</VirtualHost>

<VirtualHost xhalo.tk:80>
  ServerName xhalo.tk
  ServerAlias sapp.xgclan.com
  DocumentRoot "C:\Program Files (x86)\Apache Software Foundation\Apache24\htdocs\sapp"
</VirtualHost>

[ Voor 8% gewijzigd door Gijs007 op 03-04-2012 21:45 ]

AMD Ryzen 7 9800X3D | Corsair H150i Elite LCD | GIGABYTE X670E AORUS XTREME | G.Skill Trident Z F5-7800J3646H16GX2-TZ5RK | Inno3D GeForce RTX 4090 iCHILL X3 | Corsair HX1000i | Crucial T700 4TB | Intel Optane 905P 1.5TB | MP600 NH 8TB | Corsair iCUE 5000T


  • Gijs007
  • Registratie: Februari 2008
  • Laatst online: 30-11 11:14
Inmiddels werkt alles zo als het hoort =)

AMD Ryzen 7 9800X3D | Corsair H150i Elite LCD | GIGABYTE X670E AORUS XTREME | G.Skill Trident Z F5-7800J3646H16GX2-TZ5RK | Inno3D GeForce RTX 4090 iCHILL X3 | Corsair HX1000i | Crucial T700 4TB | Intel Optane 905P 1.5TB | MP600 NH 8TB | Corsair iCUE 5000T

Pagina: 1