i'm trying subdomains working in apache, won't work me. i've tryed virtualhost wildcard subdomain , static subdomain. code now:
<virtualhost *:80> documentroot /bestanden/webserver/vandervoorden.com/other servername other.vandervoorden.com serveralias *.vandervoorden.com </virtualhost> <virtualhost *:80> documentroot /bestanden/webserver/vandervoorden.com <directory "/bestanden/webserver/vandervoorden.com"> allow options +indexes </directory> servername vandervoorden.com </virtualhost>
the second vhost react on vandervoorden.com , www.vandervoorden.com, when browse didntexist.vandervoorden.com recieve page not found.
you need configure dns return ip didntexist.vandervoorden.com
$ dig didntexist.vandervoorden.com ; <<>> dig 9.8.3-p1 <<>> didntexist.vandervoorden.com ;; global options: +cmd ;; got answer: ;; ->>header<<- opcode: query, status: nxdomain, id: 61164 ;; flags: qr rd ra; query: 1, answer: 0, authority: 1, additional: 0 ;; question section: ;didntexist.vandervoorden.com. in ;; authority section: vandervoorden.com. 14400 in soa nszero1.axc.nl. hostmaster.vandervoorden.com. 2013071200 14400 3600 1209600 86400 ;; query time: 169 msec ;; server: 129.13.64.5#53(129.13.64.5) ;; when: mon jul 15 12:07:03 2013 ;; msg size rcvd: 107
Comments
Post a Comment