Tag Info

Hot answers tagged

9

The simple answer is, the web server software looks at the hostname in the HTTP request and uses that to determine which website to serve. For example, Apache has the NameVirtualHost configuration option which controls this behaviour. You can find a detailed explanation of how this process works in its documentation: ...


6

I would have said that placing these sensitive files above the document root would be preferable. And perhaps easier to manage if they are all contained in a particular directory, however... Using .htaccess to prevent access to all .db and .exe files and return a 403 - Forbidden. <Files ~ "\.(db|exe)$"> Deny from all </Files> Unless you have ...


5

In order for IIS to allow access to the file at all, it needs to be assigned a MIME-type. Use application/octet-stream and the browser will almost certainly treat it as a file it can't handle itself. (You could also experiment with application/x-whatever-you-want)


5

It sounds like your domain records have not propagated yet. This means that the domain name servers around the world that store a record of your domain information haven't updated with the latest details, so they are still 'sending' visitors to your old server. The solution is to wait. It can take between 0 and 48 hours for domain name changes to update ...


4

A .htaccess file works only on the Apache webserver, you're using Microsoft's IIS Webserver. See 'Add Expires or Cache Control Header to static content in IIS'


4

I've just started getting into hosting and am using WHMCS. You can find more info at http://www.whmcs.com/ You can put clients into it, separate by servers, keep track of products/services for each client, custom notes for the client or if they have multiple domains you can write notes for each domain on a client. It can automate a lot of things but If ...


4

It's tough to get some good stats for this but if you look at this article "When does it cause network problems?" it would have been an advantage if there was a proper AAAA response. On this list of customer problems that could occurr however there is one router listed that indeed has problems when both A and AAAA are set up. But what's the impact? You'll ...


4

Some search engines and bots send HEAD request to pages before sending the GET request for reasons like: Checking if the page size has changed Checking the last modified date etc. (Any other info the head would give them!) This would help large crawlers save a lot of bandwidth if they know a page has not been changed meanwhile and they don't have to ...


4

Web client, usually a browser, opens a TCP socket to the server. The server software accepts the connection without knowing the specific site requested, and waits for an HTTP request to happen. The client sends the request, mainly composed of HTTP headers. One of these headers is the Host: example.com header, at this point the server is aware of the right ...


3

Without knowing a bit more about your context it's a bit hard to provide a better solution, however rather than writing a custom web browser that allows users to browse your site, and download things why not do something along the lines of: In your windows application, call a service on your website that gives you the relevant details of downloads ...


3

If your environnement is identical, i mean with the same physical path, ip etc.. you can just applicationHost.config. The file is by default located in the C:\Windows\System32\inetsrv\config it's an xml file, si if you rigth a little tool you could change your binding before restore the file in your dev environnement


3

Your best bet is to rent a Virtual Server for ~£15 a month for approximately six months. The reason being that there is only so much you can do with an offline host, e.g. something on your LAN - it is just not 'real-world' enough. The best operating system to learn with is Ubuntu simply because it has the best community support of all of the distros. With ...


3

I suspect "Password protect folder" puts a password on for people using web browsers. I think the best way to achieve this is to have separate ftp logons for the directories for a.com, b.com and c.com. Then only you, with access to the root, have access to the files for d.com. You could make the passwords the same so that people only have to remember one ...


3

You need to make a separate VirtualHost for each port, like so: #assuming you have this in your config NameVirtualHost *:8000 NameVirtualHost *:8001 NameVirtualHost *:8002 NameVirtualHost *:8003 # (...) Listen 8000 Listen 8001 Listen 8002 Listen 8003 # (...) Then each VirtualHost looks like this: <VirtualHost *:8000> ServerName localhost ...


3

You may not be hosting malware now but you have relatively recently: http://safebrowsing.clients.google.com/safebrowsing/diagnostic?site=goodtherapy.org The script could be randomly injected or perhaps your ISP is cleaning things for you in the background. In any event, your site has been and probably still is compromised and you should be doing a ...


3

No, you should not 'comply with his expectations' because his expectations are unreasonable. As you said, you clearly stated the scope of what would be completed and what the fee for those services would be. Nowhere in your contract or meetings did you say you would setup and configure a web server or make additional pages that weren't discussed. That being ...


3

Digicert maintains pages for compatibility with certificate types: SAN certificate compatibility Wildcard certificate compatibility They note several server side compatibility problems with wildcard certificates but no client side problems. SAN certificates are problemic for some older browsers: Versions of major web browsers from before 2003. Older ...


2

Hosting companies will usually list all of their available technologies on a page that describes their hosting plans. Go to Hostgator and click on "compare all hosting plans". You will see a list of what their hosting plans support. If you see it, you can use it. PHP and MySQL are very common and offered by most hosting companies. C#, when used in .NET, is ...


2

The applicationHost.config is not necessary in this case since you're going to setup a development server. I would copy over the configuration to your dev box. The easiest way to do this is to go into IIS on your production server, click on the root server and select Shared Configuration. Then click Export Configuration... and select a location. Then on ...


2

Django has a comment module built in, and there are also many third-party comment modules.


2

This Microsoft site page lets you search for hosting providers based on parameters like type of server (shared, dedicated, virtual server) cost, technologies supported, storage, number of SQL Databases, number of e-mail accounts, bandwidth per month, support, uptime


2

To answer my own question, the problem was with how Internet Explorer handles compatibility mode on intranet sites. Even though my web.config and my HTML code specified to always set IE=Edge (most recent rendering engine), the Internet Explorer browser itself has ultimate control over the rendering, and its default is to have intranet sites rendered in ...


2

This is unlikely something you can do yourself on shared hosting. If you and your friends were banned for a perceived DoS/DDoS, then the ban would have to be applied at the firewall level or the router to stop future requests from consuming server connections. So you'll need to talk to your web host about unbanning your IP address and how to prevent a future ...


2

I just did a DNS lookup on both weekshouse.com and www.weekshouse.com. Here are my findings: Non-authoritative answer: Name: www.weekshouse.com Address: 174.61.209.88 This is registered under Comcast. Non-authoritative answer: Name: weekshouse.com Address: 174.129.88.121 This is registered under Amazon. My thoughts are, that you currently use ...


2

I've been using Apache for the last several years, because it is easy to use and configure, runs smoothly over vast networks, and has many available modules to perform various tasks. Apache is process-based, and nginx is event-based. This means, it doesn't need to create a new thread for each thing it has to process. Keeping it short, I think you're best ...


2

I used lighttpd for a year and love the simplicity of the configuration files. It runs very light and does not require a separate service (php-fpm) like nginx. However due to my curiosity I have recently changed to nginx and the config syntax is much like perl. It is scary at first coming from lighttpd, but if you take a deep breath and give it a shot ...


2

It's just a simple 301 redirect. Like so: RewriteRule http://www.somedomain.com/webmail$ http://www.actualdomain.com/webmail/ [R=301,L] This goes on the server that has these hosted domains. Then it'll route that traffic to the actual VPS that hosts the webmail client. By the way, well done in picking Roundcube. I'm using it on my VPS, literally ...


2

A 'home server' may be suitable while your userbase is small, or if you are not depending on having it online all the time (power outages, maybe it is against the ISP's terms of service even?). I guess it really depends also on how large the files are, and how many you have. I wouldn't recommend the home server because most importantly, the bandwidth speed ...


2

The cheapest way to accomplish this would be to setup a sub-domain for each. eu.yoursite.com and us.yoursite.com Then when they first arrive on yoursite.com you can use a tool to determine their geolocation based on IP such as: http://www.ip2location.com/ or http://dev.maxmind.com/geoip/geolite Set a cookie to direct them to the most appropriate ...


2

You'll want both in the root of the site, especially robots.txt because that's where Bot's will be looking for it. The Sitemap could go anywhere, but it would make the most sense in your case to put it in the root, rather than having several sitemaps for each additional language you add in the future.



Only top voted, non community-wiki answers of a minimum length are eligible