Hot answers tagged

6

Open your host file /etc/hosts with a text editor and make sure it contains: 127.0.0.1 localhost If it still doesn't work, run this command: file -b /etc/hosts and make sure the result is ASCII English text and nothing else. If it is not, use an editor such as TextWrangler or BBEdit to clean it up (use Unix end-of-line characters). Source: Apple ...


3

It looks like your url path for the actual icons are incorrect. Currently you are using ../ which means that your file is located up a level. I.e if you browsed http://example.com/home/ and assuming you had the icons in the root then it would work... but visiting just http://example.com would not work since ../ does not exist because you can't go any higher ...


3

You'll need to mix high resolution graphics, css and things like @font-face, obviously if you create a website specifically for retina displays it will create a lot of data to download with larger images etc, but what you can do is using CSS create optimised verstions for retina and non-retina visitors. There are some great tutorials online including these: ...


2

Your Mac is probably retina, which means it uses twice the amount of pixels to display things. Some articles with more information: http://blog.endpoint.com/2014/05/supporting-apple-retina-displays-on-web.html http://www.leemunroe.com/designing-for-high-resolution-retina-displays/ You can emulate retina displays on Windows in Firefox by changing the pixel ...


2

You can actually set your DNS records (on the domain itself) to use local area networks. For example, I have one domain on our network going to `http://10.160.1.234' which only works inside our network, but if someone in another country pings it, it will indeed resolve to that IP. This is probably easier than to distribute host files, because it doesn't ...


2

Alex, I think using your own DNS server is a better and easy to administer solution than to distribute hosts files across your machines. Here are my suggestions: Install Homebrew Install Dnsmasq and read the man Set up the main DNS on dev's Macs to the Mac running Dnsmasq Now Alex, you may use DNS forwarders to speed up your name resolution a bit more.


2

I managed to reproduce this on Chrome for Windows. The image on the second to last page doesn't show up, but when I download the .pdf and open it locally, it works fine. The image also shows up fine in Firefox either way. However, if I try loading the PDF from a different server, it doesn't seem to have the same issue. Since it seems to be working on a ...


2

It could be a rogue cache header. Less likely is a misbehaving service worker. It might be helpful to check the HTTP cache headers for the resources that seem stuck in the cache. Also, make sure your computer is actually fetching from the right remote server - if you ever modified your hosts file to point their domain to your dev server on your local ...


1

So I eventually worked this out by going line to line changing redirects to https://google.com to see which worked and which didn't. Any patterns in the .htaccess that had a matching php file wouldn't load. I think it's a configuration difference between the two rather than a version difference and was fixed immediately in my case by adding Options -...


1

Editing hosts files on all your machines for each project 2-3 times per week is not efficient agreed? Why not use an internet domain which you all have accessed to used for development only. Secure it with htaccess to your office IP's or simply password protect it. You'll be able to create as many subdomains as you want for each project and not have to worry ...


1

This may get complicated depending on your ISP. If your ISP hasn't blocked port 80 then it is as simple as making sure that your router forwards all requests on port 80 to your computers internal ip, then just going to whatsmyip.org then having him type in http:// followed by your IP address, then of course followed by the subdirectory of XAMPP. Also, ...


1

Once you undock it it stays undocked for that website. You could try firebug addon for firefox as an alternative. Does basically the same thing but might have the shortcut you're looking for.


1

You mount the drive as you would any other. This will usually make the files on it available via /Volumes/Something/ on your local file system. You can then specify that location as a DocumentRoot or Alias in your Apache configuration. Alternatively, you can create a symlink to it from somewhere under your existing DocumentRoot (assuming you enable ...


1

Unfortunately, getting character encodings right means checking multiple places. Data can be corrupted in half a dozen places. You need to go through and check each of them. How did you import the data from your Windows machine? Did you use mysqldump? Did you copy the database tables? If you used mysqldump you need to use the --default-character-...


1

Why use a macmini server ? When you could probably run it in the cloud - aws, rackspace ect for around £20 a month. Although in the long run you'll save money it will take you almost 18 months to break even (if bought at the uk price of £850). Baring in mind cash flow, setup and maintenance, a simple cloud server looks much more appealing. For instance ...


1

You can use Wordpress on Mac OSX there are many different ways of doing that via apps like MAMP or xampp or even use the native OSX, MAMP is probably the simplest to use when creating virtual hosts for your 80 or so domains. I am not using mamp or xampp. As for <1000 you will be fine you can use 10s of 1000s of connection per hour on a mac with a good ...


1

I do not have experience with mac mini in particular but, from what I can tell... I have been using cloud servers with 512MB of ram and very low cpu throughput, and a single machine has been able to easily handle around 1000 concurrent connections with lighttpd+fastcgi+mongodb server softwares running, and all of that with a 5-10% CPU usage; can't remember ...


1

To add to what ionfish and jmontano said, you can set up your own DNS server so that it behaves differently based upon where the request comes from. That way, you can have a public server that has a private side. Our server has a public static IP with only mail and web available, but then has a local IP (10.n.n.n) that supplies AFP and other services, but ...


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