shared-hosting

robots.txt allow all except few sub-directories

点点圈 提交于 2019-12-05 07:52:28
I want my site to be indexed in search engines except few sub-directories. Following are my robots.txt settings: robots.txt in the root directory User-agent: * Allow: / Separate robots.txt in the sub-directory (to be excluded) User-agent: * Disallow: / Is it the correct way or the root directory rule will override the sub-directory rule? unor No, this is wrong. You can’t have a robots.txt in a sub-directory. Your robots.txt must be placed in the document root of your host. If you want to disallow crawling of URLs whose paths begin with /foo , use this record in your robots.txt ( http://example

Install python packages on shared host

你说的曾经没有我的故事 提交于 2019-12-05 02:23:55
问题 I would like to know if it is possible to install (without using shell - I don't have any permissions to use command line) python packages on a shared host. (Do not ask to change host provider) Also, on that host is installed Python and Django and I would like to install : https://pypi.python.org/pypi/xlwt on server. Is that possible? 回答1: Though this is an old question, I bumped into the same problem. You normally can not install packages for Python easily. There is however a nice solution.

How to change session_save_path in php.ini file?

孤街浪徒 提交于 2019-12-04 22:56:44
I have a shared hosting on godaddy. I tried to change session save path in php.ini file with this line, sessions.save_path = "/session" I've controlled the sessions save path with sessions.save_path() function. It returns /tmp before and after changing php.ini Is it possible to change session save path on shared hosting? Where am I wrong? Mughil You can modify the session save path on shared hosting by creating a custom php.ini. Include this in your file: session.save_path = "/path/to/your/folder" Otherwise, you can use: ini_set('session.save_path', '/path/to/your/folder') The folder you use

Windows Service on Shared Windows Hosting

爱⌒轻易说出口 提交于 2019-12-04 19:10:29
I have process which continuously downloads XML from the feed and saves it to DB . I have a Windows Shared Hosting . My question is what should I use.. WCF or Windows Service or Web Service . I cant use ASP.net because it will run on call only...but I need it run 24/7 . Can you guyz suggest me how to design it? I have written a Windows Service but was unable to run it on the Server. My hosting provider is Hostgator.com You need to do it in a Windows Service. To run it you'll need a VPS hosting (or dedicated, but it will cost much more). Start with building a Console Application that does what

Supersimple static file based (html) php site cache

别来无恙 提交于 2019-12-04 12:12:41
问题 I have a website that basically only displays things without any forms and post-gets. This website is PHP based and hosted on shared hosting. It rarely changes. I would like to enable caching for this website. Its shared hosting so i need a solution that: does not use Memcached dont need to move my website to VPS dont use APC or other things So basically what i would like to acomplish is cache every subsite to HTML and tell PHP to get for 5 minutes the HTML cached version of current subsite

What are the most common, typical things to AVOID coding into my ASP.NET app in order for it to run under Medium Trust on a shared host?

痞子三分冷 提交于 2019-12-04 08:38:47
问题 What are the things that Medium Trust stops you from doing? For example, I've already learned that Medium Trust stops you from using System.IO.Path.GetTempPath(). What other things like that? 回答1: Here's how to learn about and resolve trust issues. 1) Search your Windows\Microsoft.NET\Framework[YOUR VERSION]\CONFIG folders for the files: web.config (this is the root config file) web_mediumtrust.config web_hightrust.config 2) Change the web.config to say <trust level="Medium" originUrl="" /> 3

Install python packages on shared host

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 21:43:29
I would like to know if it is possible to install (without using shell - I don't have any permissions to use command line) python packages on a shared host. (Do not ask to change host provider) Also, on that host is installed Python and Django and I would like to install : https://pypi.python.org/pypi/xlwt on server. Is that possible? Though this is an old question, I bumped into the same problem. You normally can not install packages for Python easily. There is however a nice solution. Virtualenv creates a local instance of Python, and after installing virtualenv, you can install packages

Python: Reverse DNS Lookup in a shared hosting

陌路散爱 提交于 2019-12-03 21:37:27
Is there any way to do a reverse lookup using python, to check the list of websites sharing the same IP address in a shared hosting. Some web sites offer a tool for this purpose . DNSPython Technically, you can use DNSPython to do a reverse lookup. Pip install it $ pip install dnspython Then do your reverse query: >>> from dns import resolver >>> from dns import reversename >>> addr = reversename.from_address("74.125.227.114") >>> resolver.query(addr, "PTR")[0] <DNS IN PTR rdata: dfw06s16-in-f18.1e100.net.> socket.gethostbyaddr You can also use socket.gethostbyaddr >>> import socket >>> name,

WCF authentication on IIS7 shared hosting

删除回忆录丶 提交于 2019-12-03 21:04:53
After several days of tests I find the only way I can create a WCF web service with authentication is to put a certificate in localmachine/trustedpeople cert store. The host will not do this for me. Do you know any way to enable WCF authentication without putting a cert in that store? Is there any other way to get WCF security working on shared hosting? I have worked with a sample on codeproject that puts certs in app_data, but I haven't been able to get that to work. I did some very simple test on my local IIS. I have very simple service with single method. To expose the service I use this

Add GoDaddy naked domain to Heroku app

╄→尐↘猪︶ㄣ 提交于 2019-12-03 17:47:36
问题 Heroku custom domains I've setup two custom domains for my Heroku app. example.com example.com.herokudns.com *.example.com wildcard.example.com.herokudns.com Domain configuration I configured my domain as follows: I added a CNAME Record for * pointing to wildcard.example.com.herokudns.com . Works fine. I forwarded my URL using GoDaddy's Domain Forwarding tool, because I can only specify IP addresses as A records. Problem The domain forwarding points to example.com.herokudns.com .