January 15, 2010 at 21:35
After the tests, finally there was a helpless way instead, create a .htaccess file in the picture folder, may use the 404 error or Rewrite module. Make the 404 error or Rewrite point to a file auf.php, set the expiring time in this auf.php and use header("Expires:"), intercept the picture's file name from the Address Bar as $a1, use include() function to include the picture file, as include($a1). So, the include() function of PHP is powerful.
The long-range picture also can use file_get_contents() function to invoke, write in the auf.php, also can set the expiring time of long-range picture, so the function of PHP is powerful.
January 15, 2010 at 21:03
My Linux space of IXWebHosting, the free hostings which GoDaddy presented to me, and a domestic Linux space, all of them do not support the mod_expires module. At present, the newer version of Apache is 2.2.*, such as 2.2.14, this version contains the mod_expires module, but the default does not turn on this module, in the default httpd.conf file, there is a # symbol before the sentence which loads the mod_expires module. But the Linux hosting of GoDaddy, use the Apache 1.3 version all the same.
I posted an Email to GoDaddy yesterday, hope to turn on the mod_expires module, I've just received the reply of GoDaddy, they said that they do not want to turn on this module now, maybe this clerk did not know the important action of the mod_expires module. It seems that if need use the mod_expires module, just can use the others hosting of provider, or VPS.
I've downloaded the Apache 2.2.14 version, tested on the local computer, the mod_expires module can be used normally.
January 15, 2010 at 04:51
The fee of the primary domain aaa.com will be renewed all the same, until the Local Area Network ends. The Local Area Network is impossibly eternal, because it violates the morality and justice, it will be temporary. If you have many Blogs or sites, also may parse by the sub domain of that domain bbb.com, for domestic compatriots to visit, so as long as register a temporary doman. Because bbb.com is a temporary domain, when this domain is hung, may change to ccc.com.
The Blog will not be dead, this rock may finally put down. The Blog can survive, more important than anything else.
January 13, 2010 at 20:12
Apache creates a virtual hosting, that's to say creates a delicated site, the theory is that must create in the httpd.conf file. While the delicated IPs of IXWebHosting are used up, while create a domain it will use the shared IP. But the delicated IP of GoDaddy, all of the domains which were created, can use this delicated IP. If every site which were created in IXWebHosting, all of them can share this delicated IP, it will be perfect.
A delicated IP of IXWebHosting can just create a delicated site, made a very big waste; a delicated IP of GoDaddy can create unlimited delicated sites. That means, if the shared IP of IXWebHosting is blocked by China, these 3 plans of hosting can just create 2, or 3, or 15 sites. So, these is no advantage of the delicated IP of IXWebHosting for the users in China.
January 13, 2010 at 04:56
The query parameters may reduce largely, such as the documents of Blog and forum. In a site, the approach of differentiating 2 articles is that as the URL above, article.asp?id=52 or article.php?id=495, differentiate by the ?id=. All of the other parameters, may write in the database or Cookies. Because Apache provides the .htaccess, the URL may use the Rewrite module or 404 error, realise that the URL becomes static. The query parameters may write in the database or Cookies, many necessary parameters write on the Address Bar by the connective symbols / or -.
For the immovable links of documents, you may reduce the QUERY_STRING parameters as possible. For the active URLs of search or query which submited by the users, the QUERY_STRING parameters may write on the Address Bar.
January 11, 2010 at 21:41
The ping values of my 2 spaces in the USA are about 250 ms, and about 280 ms, after many tests, the distinction between 250 ms and 280 ms is obvious. The speed of 250 ms, is almost the same as the domestic speed. The speed of 280 ms, is little slower, about 0.1 to 0.2 second.
So, the ping value is really a factor which decides the speed of site.
January 10, 2010 at 21:59
The functions of .htaccess file which provides by Apache, may realise the special functions, such as make every files invoke the Rewrite module, mod_expires module, every folder appoints the 404 error page, etc.. These are PHP, JSP, Perl and the other none of any language of program may realise directly, because the .htaccess file just realises the functions of server configuration. Whereas, if need the more complicated judgement, the .htaccess file will need to cooperate with the program. As the previous example, http://www.auciou.com/peace/83, use the .htaccess file to combine with PHP program, the .htaccess file appoints the 404 error page, it selects many 404 error page via the judgement of PHP program.
All of the programs which use the Apache as the server background, such as PHP, may use the .htaccess file. ASP+IIS, or PHP+IIS, can not realise the functions of .htaccess file, because IIS does not support the .htaccess file.
January 10, 2010 at 07:17
So it saved a delicated IP, from now on if I change the provider of hosting, I may just buy a delicated IP, and need not buy 2 delicated IPs. My approach is that the sub domains and pan-domains point to this delicated IP, the control panel of site need not any setting, at the root directory of the corresponding space of this delicated IP, create a index.php file, use this PHP file to read the Address Bar, then use the include() function to include the homepage file of the corresponding sub domain or pan-domain. The prior order of include() is that judge whether the homepage file exists, if exists, it will include the homepage file of sub domain; if does not exist, it will include the homepage file of pan-domain.
All of the inner pages of this delicated IP, just can use the 404 Error of .htaccess to realise. Create a .htaccess file at the root directory of this delicated IP's space, let the 404 error point to the auf.php. As the same steps above, the error page auf.php also write the judgment sentence, use the include() function to include the inner page of the corresponding sub domain or pan-domain, the prior order and judgement method are same with above.
Employ this delicated IP to create many sites, such as the resolution of sub domain or pan-domain, these many sites are integrated together, can not realise all kinds of function as the delicated site. If need realise the functions of delicated site, you may use other approach, such as submit the functions to the delicated site to run, or create a sub domain or pan-domain on this delicated IP, make it can perform the corresponding function.
January 2011 | January 2010
December 2009 | October 2009 | September 2009 | April 2009
December 2008 | November 2008
May 2007 | April 2007
August 2005 | July 2005 | June 2005
May 2005 | April 2005 | March 2005
February 2005 | January 2005
My Go Daddy hosting is fast
Create a house with your spouse on the interest
Pending time which add a domain of hosting, was more than 36 hours
Many Linux hostings do not support the mod_expires module
Figured out, there is still a way
About the delicated IP of IXWebHosting
About the QUERY_STRING parameter of URL
About the ping value and speed of site
The relation between program and .htaccess file
Saved a delicated IP
Judge that does a long-range file exist in PHP
How to call the Confederation of Planets and the high evolving beings of alien/pray/make a wish
Use Apache as the local virtual hosting to preview the Blog
Create the development environment of Apache
Reinstall Apache and PHP for one step
The elements of program of preventing the spam and closing IP
How to close the visit log of ixwebhosting
Happy Wedding to a friend
Make an easy Audio/Video converter