Het voordeel van http://print.dvcgraphics.com is dat mensen die een vereniging hebben
een winkel kunnen openen met onze producten. Leuk... maar het werkt niet.
Het heeft gewerkt, maar nu niet meer.

Een Winkel aanmaken is geen probleem, je komt dan op je Back office van je winkeltje en je ziet dit.


De zwarte pijl is op de knop klikken en naar de winkel.
Daar zie ik nu niets: link = http://testshop.print.dvcgraphics.com/
Daar staat nu: Apache is functioning normally

De groene knop = aktief...
Zou dat liggen aan Versio, ik host mijn domeinnamen daar...
Of misschien is testshop zelfs niet aangemaakt.

De mensen die een winkel aanmaken hebben dus geen winkel.
De ontwerpen die geupload zijn , zijn wel te zien.

- SanThe - op 22/02/2015 19:46:17

En hoe ziet de Virtual Host er uit?


Zo ziet de code er nu uit.
<VirtualHost 31.204.153.213:80 >
ServerName www.dvcgraphics.com
ServerAlias www.dvcgraphics.com dvcgraphics.com
ServerAdmin [email protected]
DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/public_html
ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup dvcgraphic dvcgraphic
</IfModule>
CustomLog /var/log/httpd/domains/dvcgraphics.com.bytes bytes
CustomLog /var/log/httpd/domains/dvcgraphics.com.log combined
ErrorLog /var/log/httpd/domains/dvcgraphics.com.error.log
<Directory /home/dvcgraphic/domains/dvcgraphics.com/public_html>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:443 >
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerName www.dvcgraphics.com
ServerAlias www.dvcgraphics.com dvcgraphics.com
ServerAdmin [email protected]
DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/private_html
ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup dvcgraphic dvcgraphic
</IfModule>
CustomLog /var/log/httpd/domains/dvcgraphics.com.bytes bytes
CustomLog /var/log/httpd/domains/dvcgraphics.com.log combined
ErrorLog /var/log/httpd/domains/dvcgraphics.com.error.log
<Directory /home/dvcgraphic/domains/dvcgraphics.com/private_html>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:80 >
ServerName www.print.dvcgraphics.com
ServerAlias www.print.dvcgraphics.com print.dvcgraphics.com
ServerAdmin [email protected]
DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/public_html/print
ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/print/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup dvcgraphic dvcgraphic
</IfModule>
CustomLog /var/log/httpd/domains/dvcgraphics.com.print.bytes bytes
CustomLog /var/log/httpd/domains/dvcgraphics.com.print.log combined
ErrorLog /var/log/httpd/domains/dvcgraphics.com.print.error.log
<Directory /home/dvcgraphic/domains/dvcgraphics.com/public_html>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:443 >
SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
ServerName www.print.dvcgraphics.com
ServerAlias www.print.dvcgraphics.com print.dvcgraphics.com
ServerAdmin [email protected]
DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/private_html/print
ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/print/cgi-bin/
UseCanonicalName OFF
<IfModule !mod_ruid2.c>
SuexecUserGroup dvcgraphic dvcgraphic
</IfModule>
CustomLog /var/log/httpd/domains/dvcgraphics.com.print.bytes bytes
CustomLog /var/log/httpd/domains/dvcgraphics.com.print.log combined
ErrorLog /var/log/httpd/domains/dvcgraphics.com.print.error.log
<Directory /home/dvcgraphic/domains/dvcgraphics.com/private_html>
php_admin_flag safe_mode OFF
php_admin_flag engine ON
php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
</Directory>
</VirtualHost>


[size=xsmall]Toevoeging op 22/02/2015 20:18:55:[/size]

In de mails van vroeger staat er:

ServerAlias *.print.dvcgraphics.com

Moet ik gewoon dit toevoegen?
Positieve verandering denk ik.
Ik heb ServerAlias *.print.dvcgraphics.com toegevoegd.

Nu zie ik geen Apache is functioning normally maar komt de site automatisch naar print.dvcgraphics.com

Aan wat zou dat kunnen liggen? Versio.... of Directadmin...
Er is geen redirect gemaakt op versio dusja, misschien iets in directadmin ofzo.

Alvast bedankt voor de hulp.

[size=xsmall]Toevoeging op 22/02/2015 20:31:01:[/size]

- San The -

Mag ik dat gewoon erbij plaatsen misschien?
Bekijk die link eens.
@ -San the - Toen ik dat plaatse gaf hij een fout:
httpd: Syntax error on line 134 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/directadmin-vhosts.conf: Syntax error on line 11 of /usr/local/directadmin/data/users/dvcgraphic/httpd.conf: /usr/local/directadmin/data/users/dvcgraphic/httpd.conf:86: <VirtualHost> was not closed.\n/usr/local/directadmin/data/users/dvcgraphic/httpd.conf:62: <VirtualHost> was not closed.\n/usr/local/directadmin/data/users/dvcgraphic/httpd.conf:35: <VirtualHost> was not closed.\n/usr/local/directadmin/data/users/dvcgraphic/httpd.conf:11: <VirtualHost> was not closed.


Heb het dan weer weggedaan.
- SanThe - op 22/02/2015 20:32:48

Bekijk die link eens.


VOlgens mij is het gewoon die ene tekst die ik vroeger moest toevoegen.
Al de rest geeft fouten -San The -

Nadt ik die toevoegde zag ik dit staan.
# Auto generated apache config file by DirectAdmin version 1.44.3
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


<VirtualHost 31.204.153.213:80 >
ServerAlias *.print.dvcgraphics.com
	ServerName www.dvcgraphics.com
	ServerAlias www.dvcgraphics.com dvcgraphics.com 
	ServerAdmin [email protected]
	DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/public_html
	ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup dvcgraphic dvcgraphic
	</IfModule>
	CustomLog /var/log/httpd/domains/dvcgraphics.com.bytes bytes
	CustomLog /var/log/httpd/domains/dvcgraphics.com.log combined
	ErrorLog /var/log/httpd/domains/dvcgraphics.com.error.log
	<Directory /home/dvcgraphic/domains/dvcgraphics.com/public_html>
		php_admin_flag safe_mode OFF
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
		php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
	</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:443 >
ServerAlias *.print.dvcgraphics.com
	SSLEngine on
	SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
	SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
	ServerName www.dvcgraphics.com
	ServerAlias www.dvcgraphics.com dvcgraphics.com 
	ServerAdmin [email protected]
	DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/private_html
	ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup dvcgraphic dvcgraphic
	</IfModule>
	CustomLog /var/log/httpd/domains/dvcgraphics.com.bytes bytes
	CustomLog /var/log/httpd/domains/dvcgraphics.com.log combined
	ErrorLog /var/log/httpd/domains/dvcgraphics.com.error.log
	<Directory /home/dvcgraphic/domains/dvcgraphics.com/private_html>
		php_admin_flag safe_mode OFF
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
		php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
	</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:80 >
ServerAlias *.print.dvcgraphics.com
	ServerName www.print.dvcgraphics.com
	ServerAlias www.print.dvcgraphics.com print.dvcgraphics.com 
	ServerAdmin [email protected]
	DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/public_html/print
	ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/print/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup dvcgraphic dvcgraphic
	</IfModule>
	CustomLog /var/log/httpd/domains/dvcgraphics.com.print.bytes bytes
	CustomLog /var/log/httpd/domains/dvcgraphics.com.print.log combined
	ErrorLog /var/log/httpd/domains/dvcgraphics.com.print.error.log
	<Directory /home/dvcgraphic/domains/dvcgraphics.com/public_html>
		php_admin_flag safe_mode OFF
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
		php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
	</Directory>
</VirtualHost>

<VirtualHost 31.204.153.213:443 >
ServerAlias *.print.dvcgraphics.com
	SSLEngine on
	SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
	SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
	ServerName www.print.dvcgraphics.com
	ServerAlias www.print.dvcgraphics.com print.dvcgraphics.com 
	ServerAdmin [email protected]
	DocumentRoot /home/dvcgraphic/domains/dvcgraphics.com/private_html/print
	ScriptAlias /cgi-bin/ /home/dvcgraphic/domains/dvcgraphics.com/public_html/print/cgi-bin/
	UseCanonicalName OFF
	<IfModule !mod_ruid2.c>
		SuexecUserGroup dvcgraphic dvcgraphic
	</IfModule>
	CustomLog /var/log/httpd/domains/dvcgraphics.com.print.bytes bytes
	CustomLog /var/log/httpd/domains/dvcgraphics.com.print.log combined
	ErrorLog /var/log/httpd/domains/dvcgraphics.com.print.error.log
	<Directory /home/dvcgraphic/domains/dvcgraphics.com/private_html>
		php_admin_flag safe_mode OFF
		php_admin_flag engine ON
		php_admin_value sendmail_path '/usr/sbin/sendmail -t -i -f [email protected]'
		php_admin_value mail.log /home/dvcgraphic/.php/php-mail.log
		php_admin_value open_basedir /home/dvcgraphic/:/tmp:/var/tmp:/usr/local/lib/php/
	</Directory>
</VirtualHost>


Nu zie ik overal www. ik denk dat dit niet juist is.

[size=xsmall]Toevoeging op 22/02/2015 21:05:30:[/size]

Probleem is nu dat testshop.print.dvcgraphics.com geredirect is naar print.dvcgraphics.com of zo.
Al zie ik nergens die redirect staan.

Ik heb de winkel testshop.print.dvcgraphics.com aangemaakt, dus die moet er zijn.
Ik heb 1 product toegevoegd en alles werkt goed in de Back office.
Je hebt DirectAdmin op de server staan? In dat geval moet je niet teveel klooien in je VirtualHost

Zie ook: http://help.directadmin.com/item.php?id=127
De meeste webhostings regelen de DNS-setting vanuit een ander controlepaneel, dus moet je de de * in je A-record daar plaatsen.

Daarna moet je in het textarea van de VirtualHosts dit invullen: ServerAlias *.|DOMAIN|
Daarna wordt de virtual host binnen enkele minuten aangepast.

Pas dus NIET de virualhost zelf aan! (zie comments)

Let daarna wel op dat je geen gebruik meer moet maken van het Subdomain management in DirectAdmin, dan schijnt je VirtualHost weer terug te worden gezet.

Niets werkt blijkbaar.

Ik heb een A record (*.print.dvcgraphics.com) in de paneel geplaatst.
Die was er al... Maar ik heb die an verwijderd en enkel een A record met * maar mijn site was offline.
Dan maar teruggezet.

Probleem blijft bestaan, geen enkele subdomein.print.dvcgraphics.com werkt. :(

Er moet iets zijn dat ik over het hoofd heb gezien, vroeger werkte het...
Misschien een map die niet op Chmod 777 staat.. zou kunnen toch?
Je hebt je VirtualHost zelf niet aangepast hoop ik?
En wat heb je in de grote textarea geplaatst?

Reageren