Subdomains Half-way Created And Ignored By Apache
May 27, 2015
Since a week ago or so, in one of our Plesk 12.0.18 / Centos 6.6 servers, when we create subdomains the process seems to stop half-way without being finished.
To reproduce the error:
Select a subscription (e.g. example.com) and go to "Domains and subdomains"
Select "add new subdomain" and enter a value (e.g. new.example.com). The directory will live in parallel to httpdocs
Click Accept
Expected result:
The subdomain should be created: Filesystem diirectory with default contents, DNS entry, Apache VirtualHost, etc.
Actual result:
After several minutes Plesk responds with Internal Errror (in a red area in the panel).
Things done right:
The file space in parallels with httpdocs is created fine with the default site.
DNS entries are created under /var/named/chroot infrastructure.
The subdomain menu appears fine in the Plesk panel.
Things wrong/missing:
The filesystem directory is not mapped by Apache. Even after changing its contents the default server templeate appears in the browser, (all precautions taken, apache restart, browser in private session and different browsers).
Log info:
- /var/log/sw-cp-server/error_log says:
2015/05/27 18:17:45 [error] 28890#0: *1828 readv() failed (104: Connection reset by peer) while reading upstream, client: nnn.nnn.nnn.nnn, server: , request: "POST /smb/web/add-subdomain HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "<hostname>:8443", referrer: "https://<host>:8443/smb/web/add-subdomain"
- /var/log/httpd/access_log records the access with 200 OK codes although I don't find them in neither subscription logs under /var/www/vhost/system/*/logs/access_log
nnn.nnn.nnn.nnn - - [27/May/2015:18:38:35 +0200] "GET <deleted_content_in_the_subdomain_directory> HTTP/1.1" 200 14036 "http://<new_subdomain>" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
I don't find the Apache VirtualHost .conf files for subdomains, where can I look for them up...
View 4 Replies
ADVERTISEMENT
May 10, 2008
I am facing an very typical problem, when I start apache and mysql both my site works good for half and hour or so then start getting slower and slower to load and after sometime becomes completely inactive. Then i have to restart both mysql and apache to get my site back.
When sites became inactive I have to restart only apache to see it back.Restarting only mysql dont help at that time.
Apache runs without any problem when running alone .(mysql stoped.)
View 7 Replies
View Related
Aug 7, 2014
We are getting the below message in Apache's error.log when accessing from mobile application & updated apache from 2.4.9 to 2.4.10 also.Trailing dot is created after the URL.
I can able to hit [URL] ..... and I can't able to hit [URL] ....
View 11 Replies
View Related
Apr 29, 2015
I created certificate and it appears to be working but I am always getting a cert error about a mismatched address. I have checked my settings and the certificate and host names match. It doesn't make sense. I have looked online at different forums and support sites but nothing has worked. The only thing I can think to do is to get a new cert. This cert is for an internal site only...
View 11 Replies
View Related
Jun 30, 2014
After upgrade to Parallels plesk v 12.0.18 update #5 we were getting a blank screen. We have managed to get logged into the server but have errors - plus all the websites are down with a 404 error Apache Server at gardenbuildings.domainame.co.uk Port 443.
On the Plesk management it is showing: New configuration files for the Apache web server were not created due to the errors in configuration templates:
mkdir: cannot create directory `/var/www/vhosts/system/domainname.com/conf': No such file or directory mktemp: failed to create file via template `/var/www/vhosts/system/domainname.com/conf/httpd.conf.XXXXXX': No such file or directory Can not create temporary file .
Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files.
Also when trying to resolve the issues and generating all configuration files I am getting this error:
Unable to configure the web server: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all )
Details: Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => addisonousebank.co.uk,blog.addisonousebank.co.uk,garages.addisonousebank.co.uk,
[Code] ....
View 2 Replies
View Related
Jan 17, 2014
I created a FTP account with vsftp and files uploaded are not readable via www-data
View 1 Replies
View Related
Dec 17, 2014
I tried to add ac new subscription and this failed.No I have an inconsistent subscription and get the following error: New configuration files for the Apache web server were not created due to the errors in configuration templates:
Template processing failed: file = /opt/psa/admin/ conf/ templates/ default/domainVhost.php,
error = Template_Exception: No data. file: /opt/psa/admin/plib/Template/Processor.php line: 28 code: 0
Previous error: Template_Variable_Exception: No data. file: /opt/psa/admin/plib/Template/Variable/AbstractCachedData.php line: 67 code: 0.
Detailed error descriptions were sent to you by email.click here to generate broken configuration files once again or here to generate all configuration files.
I have Plesk 12.0.18 on Ubuntu
View 1 Replies
View Related
Apr 22, 2013
trying to find a working solution for setting up a subdomain for my Apache server.
Here is my setting:
(1) I have two virtual hosts defined in httpd-vhosts.conf: domain1.com and domain2.com. Included NameVirtualHost *:80 both into httpd-vhosts.conf and httpd.conf.
(2) Settings in httpd-vhosts.conf:
Quote:
# domain1.com virtual host.
ServerAdmin info@domain1.com
DocumentRoot "d:/Websites/domain1_com/www"
ServerName domain1.com:80
ServerAlias *.domain1.com
[Code] ....
So far, everything works perfectly.
(3) Now, I added a virtual host for subdomain:
Quote:
# sub.domain2.com virtual host.
ServerAdmin info@sub.domain2.com
DocumentRoot "d:/Websites/sub_domain2_com/www"
ServerName sub.domain2.com:80
[Code] ...
4) Here the problem comes. When I enter sub.domain2.com into browser, it shows domain1.com content.
(5) Based on some suggestions, I removed asterisks from ServerAlias lines. This made the subdomain working, but messed up the other two servers, which became unavailable or broken down.
View 8 Replies
View Related
Oct 12, 2013
When I type mail.mydomain.com into any browser it resolves to the first virtual host that my apache has even though there aren't any document roots defined for mail.mydomain.com. Apache itself works fine, mail server itself works fine as well. I thought that since mail.mydomain.com has an A record but does not have any document roots specified for that Apache simply takes the first virtual host it has on its list and shows it up online as mail.my domain.com. Is that not right? Is there perhaps any misconfiguration somewhere?
I tried deleting virtual hosts one by one and this test simply confirmed that in order to "serve" mail.mydomain.com Apache takes the first virtual host it has on the list. Then I created a document root for mail.mydomain.com and now it shows some test content I specified but my issue / question remains.. Does it mean that I have to create document root stuff for every single A record I have? For example I have an A record for mail. mydomain. com which works as a mail server but for some reason it also resolves as a simple web page?
The problem in short is that when I type mail.mydomain.com into a browser it shows the content from subdomain.mydomain.com. The relation to mail is not webmail, it's just a regular standard mail server. The question / goal is to find out whether it is supposed to be like that? If it is then I will have to create some content to be shown when someone types mail.mydomain.com
View 14 Replies
View Related
Feb 10, 2014
I'm using the following vhost script: URL...This used to work on an older version of apache in Windows. Now I'm running Apache 2.4.6 on Ubuntu 12.04.
When I type in, for example, dhae.papertower.dev, it processes some scripts internally and moves me to www.dhae.papertower.dev.. and breaks. When I check my log, I find that it's trying to go to the /var/www/papertower/www directory.
I tried adding www.*.papertower.dev to the ServerAlias, but that didn't do it.
View 1 Replies
View Related
Apr 27, 2006
I'm currently trying to configure apache 2 to handle subdomains. This is on a local machine (not tied to any domain names) and I'm only doing it to research how the final structure of a site 'could' be setup.
Basically I have a single install of Apache 2 running. The outcome eventually should be to have specific sub domains that all point to the same document root as the actual domain name. So eventually I will have:
http://www.mydomain.com
http://subdomain1.mydomain.com
http://subdomain2.mydomain.com
with both subdomains showing the content at mydomain.com (there is reasoning behind this but I'm not gonna go into that).
I have apache setup as follows:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain1.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>
<VirtualHost *:80>
ServerName subdomain2.daneastley
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs"
</VirtualHost>
Now on my local machine, only the top one works - the subdomains dont. if I add the following into my hosts file in windows, they all work:
127.0.0.1 daneastley
127.0.0.1 subdomain1.daneastley
127.0.0.1 subdomain2.daneastley
the problem being, that I wish to test this enviroment on the local network. How would I go about having every computer being able to access this? I'm assuming it comes down to DNS stuff.
View 0 Replies
View Related
Jul 11, 2015
I have viewing the city names in my website like the following structure - [URL] ....
Here is the ,htaccess code - RewriteRule ^([^/]*)/([^/]*)/$ city.php?state=$1&city=$2 [NC]
But actually, I'm looking for to use wildcard subdomains that will rebuild the city names like the following structure-
city.mydomain.com/state/
I just need the htaccess rewrite code.Â
View 1 Replies
View Related
Jun 8, 2013
I want to rewrite across subdomains, e.g. requests for sub1.mydomain.com/foo.htm -> www.mydomain.com/foo.htm. I can do
this with something like:
Code:
RewriteCond %{HTTP_HOST} ^sub[0-9].
RewriteRule (.*) http://www.mydomain.com/$1 [R=303,L]
I want to make it an internal rewrite though, not an external redirect. If I remove the [R=303] I still end up with a redirect (a 302). I assume mod_rewrite is forcing an external redirect because it's to a different [sub]domain.
Is there any way I can overcome this and make the change internal?
View 2 Replies
View Related
Jan 21, 2015
Say I have two domains: example.com and example.net.
Upon a http request to example.com, I wish to redirect to https://example.com.
Upon either a http or https request to example.net, I wish to redirect to https://example.com.
Note that for both cases, subdomains should also be redirected, and the change should be considered permanent.
I've seem multiple ways to do so. What is the best way? How do I deal with subdomains when there is a new domain such as example.net to example.com?
I've taken a stab. How to fill in the gaps?
View 1 Replies
View Related
Jan 14, 2013
I have substituted the domain names and DocumentRoot folders for generic titles, so I will refer to those where applicable in the thread as well.
Here is my httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "C:WebServerwww"
</VirtualHost>
<VirtualHost *:80>
[Code] ....
View 1 Replies
View Related
Aug 1, 2008
I just picked up a WiredTree VPS account, but have never really dabbled deep into server-related knowledge. I was wondering what one would do to rid of the "Great Success!
Apache is working on your cPanel® and WHM™ Server" pages when subdomains are accessed?
View 0 Replies
View Related
Mar 23, 2007
I've just downloaded Microsoft Virtual PC and the Internet Explorer 6 Application Compatibility VPC Image containing an XP installation for testing sites with IE6 [url].
Everything works fine, I chose VPC Shared Networking (NAT) and I can access the internet from the VPC as well as my Apache development server which runs on the host OS (Win XP) by going to the host's IP address which is [url] in my case. And here I have 2 problems:
1. I want to access [url]on VPC just by typing [url]. I added the following line to the hosts file:
192.168.52.141 localhost
But this doesn't work. Interestingly, any name other than localhost works fine, for example:
192.168.52.141 localhost.localhost
or
192.168.52.141 local
This is not a major problem but I'd prefer localhost. Any ideas how to do that?
2. And the more important issue: on my host OS I have some development sites which I have set up to be accessed by subdomains, for example [url], in httpd.conf:
Code:
<VirtualHost 127.0.0.3>
ServerName perfekt.localhost
DocumentRoot C:wwwperfekt
DirectoryIndex index.php index.html
</VirtualHost>
and in hosts file:
Code:
127.0.0.3 perfekt perfekt.localhost
And now I want to access this site from my VPC too by using subdomains like this! How can I do that? The address 127.0.0.3 seems to be local to the OS and VPC can't see it. I have tried setting other IP addesses in httpd.conf but nothing outside the 127.x.x.x range works on either OS. I suppose I need to make each of my sites to be seen under a different IP from the outside network so that VPC (which is "outside" the host OS) can access them - then I just set up the appropriate subdomain names in VPC hosts file -
View 0 Replies
View Related
May 31, 2014
I am trying to set up domains and subdomains, on my webserver, however the domains are resolving, but when accessing a subdomain I get a 500 internal server error, permissions on files are the same on both domain and sub domain level.
My virtual host files looks like this for domains and for the subdomains, and I am using Apache 2.4.7, on an ubuntu 14.04 running on a rackspace cloud server.
Domains:
<virtualhost *:80>
ServerAdmin mail@mail.mail
ServerName domain.com
ServerAlias www.domain.com
[Code] ....
Why it works on domains, and not the subdomains?
View 1 Replies
View Related
May 7, 2007
I've set up the affiliate manager from jrox.com for a client of mine. This includes the setup of wildcard DNS so that each affiliate can have username.clientssite.com and have it count their clicks - which works properly.
What isn't working properly is that he also has forums.hissite.com, which is loading the main website page instead of his forums. He is using cpanel to add the subdomain, and it isn't failing, so I'm not sure what's going on with it.
Here is the relative section from the httpd file.
Quote:
<VirtualHost 74.53.106.146>
ServerAlias residualvictory.com
ServerAlias *.residualvictory.com
ServerAdmin webmaster@residualvictory.com
DocumentRoot /home/residual/public_html
BytesLog domlogs/residualvictory.com-bytes_log
ServerName www.residualvictory.com
User residual
Group residual
CustomLog /usr/local/apache/domlogs/residualvictory.com combined
ScriptAlias /cgi-bin/ /home/residual/public_html/cgi-bin/
</VirtualHost>
<VirtualHost 74.53.106.146>
ServerAlias www.forums.residualvictory.com
ServerAlias forums.residualvictory.com
ServerAdmin webmaster@forums.residualvictory.com
DocumentRoot /home/residual/public_html/forums
BytesLog domlogs/forums.residualvictory.com-bytes_log
ServerName forums.residualvictory.com
User residual
Group residual
CustomLog /usr/local/apache/domlogs/forums.residualvictory.com combined
ScriptAlias /cgi-bin/ /home/residual/public_html/forums/cgi-bin/
</VirtualHost>
And the bind file for his domain
Quote:
; Modified by Web Host Manager
; Zone File for residualvictory.com
$TTL 14400
@ 86400 IN SOA ns1.lucidic.com. root.lucid.lucidic.com. (
2007050705
86400
7200
3600000
86400
)
residualvictory.com. 86400 IN NS ns1.lucidic.com.
residualvictory.com. 86400 IN NS ns2.lucidic.com.
residualvictory.com. 14400 IN A 74.53.106.146
localhost.residualvictory.com. 14400 IN A 127.0.0.1
residualvictory.com. 14400 IN MX 0 residualvictory.com.
mail 14400 IN CNAME residualvictory.com.
www 14400 IN CNAME residualvictory.com.
ftp 14400 IN A 74.53.106.146
forums 14400 IN A 74.53.106.146
www.forums 14400 IN A 74.53.106.146
* 14400 IN A 74.53.106.146
View 10 Replies
View Related
Mar 26, 2014
I added the following to my cpanel .htaccess file on my hosting account:
<FilesMatch ".pdf$">header set x-robots-tag: noindex
</FilesMatch>
This was to stop Google from crawling and indexing my PDFs, will this work accross all my addon domains and subdomains (which are wordpress) on my hosting account or do I need to take extra measure?
View 4 Replies
View Related
Jul 20, 2009
I currently use a half cabinet and think I'm paying way too much. I pay $1,000/month for half rack (10 meg bandwidth) 20 amps power, etc. Service and connectivity has been great (Ashburn, VA data center) but I think it's just over priced.
What should I pay for half cab, 20 amps, 5-10 MEG bandwidth, 20 amps?
On that note, what if I was to go for a full cabinet solution, same power and bandwidth, what is ultimately the expected price for a reputable colo provider?
View 12 Replies
View Related
Aug 31, 2009
Recently i visited a Colo locally where i was given a strange pricing structure which i m confused about.
Half Rack
15 Amps
XXX Bandwidth
$600
Full Rack
20 Amps
XXX Bandwidth
$1500
Now here's the confusion when i fill up half rack it only comes to 6 to 7 servers, anything above that i m being charged per server which is $100. So here i feel i m paying just for power left aside rack and bandwidth. So purchasing 2 half racks seems more efficient.
P.S bandwidth is same on each server by the GB and not mbps or gbps.
View 11 Replies
View Related
Mar 15, 2009
it's been year and half since we are together, so i can tell a lot more about medialayer.
1. speed is excellent. various users from all over the world reporting that the website reaction is good to excellent. that includes aussies.
2. uptime is perfect. i know, that sometimes they DO announce some maintenance works, and i suspect they really do them, but till now my impression is that they operate like little dwarves - nobody sees and nobody feels anything.
3. support - quick, effective, polite - who would want more?
me and my firm are very happy with our choice we maid a year and a half ago. these days we launch another website, hosted with medialayer.
View 14 Replies
View Related
Feb 13, 2009
just wanted to share my experience with the shared hosting service offered by hostiaweb.com which i ve been using from nearly 3 months. i usually don't write reviews because i am kinda lazy, well actually the truth is i ve never had that "completely satisfied" feeling with any web host before. One thing kinda honored me that one of their support guy told me that i am very valuable because i am one of their first clients. its not always bad to give new companies a chance. anyways here it is:
the signup process:
i like the system they use for order, signup. after i completed the payment, i ve logged in to my email account to check if their instant setup was for real and i was amazed to see the welcome email already in there. everything worked like charm, however the domain took more then 2 hours to start working after i changed the name-servers.
control panel, uptime, troubles:
i have to say that i did not notice a single second of downtime till now. their servers are very fast (at-least the one i am hosted on)
the control panel they use is cpanel but thats what majority of the hosts use, because i have tried many hosting services and only one of them did not offer cpanel.
in the start i had a bit problem with ftp but not only they fixed it for me but also helped me in installing a blogging script.
support:
their support has been excellent so far, i did not ask for much support because i know most of the stuff myself but all the tickets i ve submitted.. i received very professional, helpful responses.
the thing which really impressed me was that sometimes their support team was so fast that it amazed me.
BAD THINGS :
there was a problem in their customer panel so it kept sending me emails for unpaid invoices when i had no due invoices, this really pissed me off. but they fixed it fast.
the domain i bought and name-servers resolution took over 2 hours which i think is very slow.
for those who wondering, my website is getyourpr.net
FINAL OUTCOME:
i would rate hostiaweb.com's:
Support: 9/10
Uptime : 10/10
Domain registration process: 6/10
Customer control panel: 8/10
OVERALL RATING: 8.5/10
View 5 Replies
View Related
Feb 3, 2007
I got problem with collisions
I think this because of half duplex that nic does:
eth0: no autonegotiation, 100baseTx-HD, link ok
product info: vendor 00:00:20, model 32 rev 1
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD
link partner: 100baseTx-HD
Is this because of nic or switch?
what is link partner?
View 0 Replies
View Related
Nov 4, 2007
a month and a half ago i was in the market for a VPS that would suite my private hosting company /design firm. After getting Pm's from many of the hosters , I was not impressed with the way they would not negotiate. i didn't need 40 gb space but still wanted 200 gb bandwidth. Thats when i came across birdhosting! It even turned out that the owner was at webhostingtalk as well! I pmed and we discussed the plan that i needed. he negotiated and i had gotten what i wanted . He also gave me his contact info so i could speedily contact him through an instant messenger. I had come across very minor problems but that was because i was a noob with plesk. I wanted to know how i could create reseller accounts and log in through shell. Through minutes i had them answered(They were veryy noobie but still). with the specs i had , It was the fastest Vps i had seen . (My specs were:
10 gb space
128 mb ram with 256 burst
200gb b/w
View 3 Replies
View Related
Oct 21, 2009
If I post this in the wrong forum section, forum admins should feel free to move the thread to an appropriate section.
It's been more than half a year, now, since the previous disaster with Rageki Hosting, and since the transition to MDDHosting, there have been no negative hosting experiences with MDDHosting to report. There hasn't even been any need to initiate support tickets, once the initial transition phase was past, where Rageki Hosting left us in the lurch, and Mike over at MDDHosting communicated with us at that time, back in March of this year, in order to get things plucked from the nether void caused by Rageki Hosting's abrupt shutdown.
So, if the last six to seven months are any indication, the decision to go with MDDHosting for the local landscape guy's website, which I set up for him, seems to have been a good decision on our part.
There has only been a single instance, during these past six to seven months, where the landscape guy complained about his site not loading. When he reported that to me, I promptly tried to bring his website up in my web browser, and it loaded just fine. When I told this to the landscape guy, and told him to try and load his site, again, it loaded on his end, also. Personally, I think that it was a glitch on the landscape guy's end, a problem with his computer or Internet provider, and not a problem with the webhost, MDDHosting. I don't consider it to be downtime, because there was no actual, solid indicator on my end that the website was actually down, where that particular episode was concerned.
Every time that I, personally, have tried to bring up the website, since things were up and running on MDDHosting, the site has loaded. It's not a busy website, at all, but it is a business related website, so downtime issues for this particular website are particularly important to both the landscape guy and to myself.
In sum, I give two thumbs up to MDDHosting on the reliability of its web hosting.
View 4 Replies
View Related
Nov 9, 2009
The issue I'm having is I want to use Xcache, the php opcode cache for PHP
I've installed it and it works fine, except it only works on ONE domain
I've made sure all domains work in the shard IIS pool, I've also tried copying the PHP.ini file to the domain's httpdocs folder, incase it needs it, but it still won't work
When loading www.thedarkages.info, I get this spammed across my screen
Warning: xcache_isset() [function.xcache-isset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 557
Warning: xcache_isset() [function.xcache-isset]: xcache.var_size is either 0 or too small to enable var data caching in [path]includesclass_datastore.php on line 557
But on this site - www.uoforums.net - There is no error and that forum is using XCache without issue
I've tried increasing the var_size to a higher limit, but it doesn't have any effect.
PHP is running in FastCGI mode right now, I tried setting it to ISAPI mode, but it still threw back the same error
View 0 Replies
View Related
Dec 18, 2008
After some yum updates last night one user and group called xfs were created on my dedicated server. Does anyone know what this group/user is used for?
View 0 Replies
View Related
Apr 16, 2007
I'm in the process of configuring my company's new server and I've hit a slight stumbling block. What's happening is that PHP is creating its sessions like normal with the exception of no permissions being set for them. This then means that errors are thrown up when PHP attempts to open the session files. Can anybody tell me why this is happening? I have set the sessions directory to octal 0777 for the time being.
The server is running Linux redhat.
View 0 Replies
View Related