WPMU not showing the wildcarded subdomain
-
I am running WordPress 3.01 on a 1and1 server (VPS) wildcard subdomains are enabled, mod_rewrite is enabled in apache. .htaccess is added as directed, wp-config.php is edited as needed and blogs.dir is chowned/chmodded as the wp-content folder is. subdomain blogs resolve to the host “configure” page and do not resolve as they should. Someone please help me see where I have gone awry.
you can see the mu site here: https://pinnaclenetworking.com and my first added “sub” blog is qc.pinnaclenetworking.com
Help!
-
subdomain blogs resolve to the host “configure” page and do not resolve as they should.
then the wildcard record is not pointing at the directory where WordPress is installed.
If the host says it’s supported, and you’re doing this on an add-on domain, and NOT the root install, then that’s why.
there’s only two things need for the wildcard to work –
Apache pointing the wildcard subdomain record to the right folder
and the DNS record.the below file is located “here”:/var/www/vhosts/pinnaclenetworking.com/conf/
<IfModule mod_ssl.c> <VirtualHost 74.208.67.xxx:443> ServerName pinnaclenetworking.com:443 ServerAlias .pinnaclenetworking.com UseCanonicalName Off SuexecUserGroup user psacln ServerAdmin [email protected] DocumentRoot /var/www/vhosts/pinnaclenetworking.com/httpdocs CustomLog /var/www/vhosts/pinnaclenetworking.com/statistics/logs/access_ssl_log plesklog ErrorLog /var/www/vhosts/pinnaclenetworking.com/statistics/logs/error_log <IfModule mod_userdir.c> UserDir /var/www/vhosts/pinnaclenetworking.com/web_users </IfModule> ScriptAlias /cgi-bin/ /var/www/vhosts/pinnaclenetworking.com/cgi-bin/ Alias /plesk-stat /var/www/vhosts/pinnaclenetworking.com/statistics/ <Location /plesk-stat/> Options +Indexes </Location> <Location /plesk-stat/logs/> Require valid-user </Location> Alias /webstat /var/www/vhosts/pinnaclenetworking.com/statistics/webstat Alias /webstat-ssl /var/www/vhosts/pinnaclenetworking.com/statistics/webstat-ssl Alias /ftpstat /var/www/vhosts/pinnaclenetworking.com/statistics/ftpstat Alias /anon_ftpstat /var/www/vhosts/pinnaclenetworking.com/statistics/anon_ftpstat Alias /awstats-icon /var/www/html/awstats/icon SSLEngine on SSLVerifyClient none SSLCertificateFile /usr/local/psa/var/certificates/certIJ18097 <Directory /var/www/vhosts/pinnaclenetworking.com/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule mod_perl.c> <Files ~ (\.asp$)> SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/pinnaclenetworking.com/httpdocs:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/pinnaclenetworking.com/httpdocs:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> SSLRequireSSL Options +Includes +ExecCGI </Directory> <Directory /var/www/vhosts/pinnaclenetworking.com/web_users> <IfModule sapi_apache2.c> php_admin_flag engine off </IfModule> <IfModule mod_php5.c> php_admin_flag engine off </IfModule> </Directory> </VirtualHost> </IfModule> <VirtualHost 74.208.67.xxx:80> ServerName pinnaclenetworking.com:80 ServerAlias *.pinnaclenetworking.com UseCanonicalName Off SuexecUserGroup user psacln ServerAdmin "[email protected]" DocumentRoot /var/www/vhosts/pinnaclenetworking.com/httpdocs CustomLog /var/www/vhosts/pinnaclenetworking.com/statistics/logs/access_log plesklog ErrorLog /var/www/vhosts/pinnaclenetworking.com/statistics/logs/error_log <IfModule mod_userdir.c> UserDir /var/www/vhosts/pinnaclenetworking.com/web_users </IfModule> ScriptAlias /cgi-bin/ /var/www/vhosts/pinnaclenetworking.com/cgi-bin/ Redirect permanent /plesk-stat https://pinnaclenetworking.com/plesk-stat Redirect permanent /webstat https://pinnaclenetworking.com/webstat Redirect permanent /webstat-ssl https://pinnaclenetworking.com/webstat-ssl Redirect permanent /ftpstat https://pinnaclenetworking.com/ftpstat Redirect permanent /anon_ftpstat https://pinnaclenetworking.com/anon_ftpstat Redirect permanent /awstats-icon https://pinnaclenetworking.com/awstats-icon <IfModule mod_ssl.c> SSLEngine off </IfModule> <Directory /var/www/vhosts/pinnaclenetworking.com/httpdocs> <IfModule mod_perl.c> <Files ~ (\.pl$)> SetHandler perl-script PerlHandler ModPerl::Registry Options ExecCGI allow from all PerlSendHeader On </Files> </IfModule> <IfModule mod_perl.c> <Files ~ (\.asp$)> SetHandler perl-script PerlHandler Apache::ASP PerlSetVar Global /tmp </Files> </IfModule> <IfModule sapi_apache2.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/pinnaclenetworking.com/httpdocs:/tmp" </IfModule> <IfModule mod_php5.c> php_admin_flag engine on php_admin_flag safe_mode off php_admin_value open_basedir "/var/www/vhosts/pinnaclenetworking.com/httpdocs:/tmp" </IfModule> <IfModule mod_fcgid.c> <Files ~ (\.fcgi)> SetHandler fcgid-script Options +FollowSymLinks +ExecCGI </Files> </IfModule> Options +Includes +ExecCGI </Directory> <Directory /var/www/vhosts/pinnaclenetworking.com/web_users> <IfModule sapi_apache2.c> php_admin_flag engine off </IfModule> <IfModule mod_php5.c> php_admin_flag engine off </IfModule> </Directory> Include /var/www/vhosts/pinnaclenetworking.com/conf/siteapp.d </VirtualHost>
and in this vhost.conf I have another “made subdomain” for another project, is this borking the “read”?
AddType x-mapp-php5 .php RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L]
Host Record type Value *.pinnaclenetworking.com. A 74.208.67.187 *.webmail.pinnaclenetworking.com. CNAME pinnaclenetworking.com. 74.208.67.187 / 24 PTR pinnaclenetworking.com. ftp.pinnaclenetworking.com. CNAME pinnaclenetworking.com. im.pinnaclenetworking.com. A 74.208.67.187 mail.pinnaclenetworking.com. A 74.208.67.187 ns.pinnaclenetworking.com. A 74.208.67.187 pinnaclenetworking.com. NS ns.pinnaclenetworking.com. pinnaclenetworking.com. A 74.208.67.187 pinnaclenetworking.com. MX (10) mail.pinnaclenetworking.com. webmail.pinnaclenetworking.com. A 74.208.67.187 www.pinnaclenetworking.com. CNAME pinnaclenetworking.com.
I have even since removed the im.pinnacle…. subdomain…and removed the ref from the vhost.conf
hi DJTwittr .. just try with the following through SSH
Edit/Create the /var/www/vhosts/domain.com/conf/vhost.conf or
/home/httpd/vhosts/domain.com/conf/vhost.conf file and enter this information:
ServerAlias *.yourdomain.comthen type the following commands..
/usr/local/psa/admin/bin/websrvmng -av
/etc/init.d/httpd reload
I am very “anti” command line… how do I get to the point of editing the vhost.conf (in ssh) and are the later commands a change in directory? I used SSH FTP to upload the vhost.conf in the first place, but I realize this may be an error too to a point… I just want this to work, as it looks like it is “working” for the most part….
sidenote:
I think vi is all that comes installed (I haven’t added nano)the below file is located “here”:/var/www/vhosts/pinnaclenetworking.com/conf/
Crap, you have Plesk, don’t you?
Can you get customer support to do it? ??
I do have plesk, but I can use putty pretty well… (I just can never remember the commands to do what I need) When I talk to customer service, they say “I need to run my own DNS service to do what I need it to do” (Which is crap I know) NO HELP AT ALL for that anyway… not to bad for other stuff though
Ok I tried on my own to use putty to edit vhost.conf (with vi) and I did so…
I noticed in the mod_ssl section a * was not present in the ServerAlias so I added it… the port 80 version looked ok… I saved… then used
/usr/local/psa/admin/bin/websrvmng -av
Syntax error on line 12 of /var/www/vhosts/pinnaclenetworking.com/conf/vhost.conf:
<VirtualHost> cannot occur within <VirtualHost> section
websrvmng: Service /etc/init.d/httpd failed to gracefully restart
websrvmng: Service /etc/init.d/httpd failed to gracefully restartthen still tried /etc/init.d/httpd reload
Reloading httpd: not reloading due to configuration syntax error
Yeah, Plesk does things weird… go into the main /etc/httpd/conf/ folder for the server (if you have access, pretty please say you do…) and make the edit there. Plesk won’t actually override that one.
Ok… I do have access to that as well… I should probably remove this one as well correct?
<VirtualHost *:80> ServerAlias pinnaclenetworking.com *.pinnaclenetworking.com # ServerAdmin [email protected] # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common </VirtualHost>
This was at the bottom of my httpd.conf in the etc/httpd/conf folder… I will be adding the vhost.conf to that folder as well…
ok…added vhost.conf to etc/httpd/conf removed it from the other spot… used /usr/local/psa/admin/bin/websrvmng -av
and /etc/init.d/httpd reload
and still nothing…<VirtualHost *:80> ServerAlias pinnaclenetworking.com *.pinnaclenetworking.com
should have worked, but the doc root line was commented out, so it had no idea where to go.
<VirtualHost *:80>
ServerAlias pinnaclenetworking.com *.pinnaclenetworking.com
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/pinnaclenetworking.com/httpdocs/
# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phpsso i can try this ??
now i tried to reload…and it said
etc/init.d/httpd reload
-bash: etc/init.d/httpd: No such file or directoryYou forgot a slash. Should be
/etc/init.d/httpd reload
etc/init.d/httpd/ reload
-bash: etc/init.d/httpd/: No such file or directoryoops… i caught the missing slash now lol
ok i wasn’t “located” in the right directory…. fingers crossed
nope…still not better… but on another note… qc.pinnaclenetworking.com/wp-admin…. does not show the default server page… but a “oops this site appears to be broken” page… not what is expected (if the front end gets a default page…I would think the backend should too
ok…multiuser is not as “user freindly as they claim… single blogs it is…
- The topic ‘WPMU not showing the wildcarded subdomain’ is closed to new replies.