Tag Info

Hot answers tagged

30

Since OS X comes with python2 I suggest: $ python -m SimpleHTTPServer Serving HTTP on 0.0.0.0 port 8000 ...


12

As of PHP 5.4.0, the CLI SAPI provides a built-in web server. More details in the official PHP documentation: Open terminal. Navigate to the folder (directory) containing the file you want to serve. php -S localhost:8080 Go to http://localhost:8080 in the browser.


7

In older versions of OS X, there was a Preference Pane (System Preferences → Sharing → Web Sharing) that allowed you to easily enable the built-in Apache web server. Once enabled, all you had to do was place the file to be served in a directory named Sites inside your home directory, and then you could fetch http://localhost/~yourusername/filename.html. ...


3

"How can I ensure that tleilax always gets assigned the same IP address?" Use Address Reservation. Reference Wireless-N 150 Router WNR1000v2 User Manual: To configure LAN IP settings, select LAN Setup under Advanced in the main menu. The LAN Setup screen displays: ... Using Address Reservation When you specify a reserved IP address ...


3

Often, web servers are configured to use name-based virtual hosting, where the content that is served depends on the domain name that was requested in the Host header. Name-based virtual hosting is necessary for almost all shared hosting, as well as for most web applications that use more than one domain name in their operation. As it is so frequently ...


2

There are a lot of different ways to do this in Mac OS X. But to me, the simplest way—conceptually and visually—is via a graphical user interface like what MAMP offers. The non-Pro version of MAMP is 100% free and works great for basic usage like this: MAMP installs a local server environment in a matter of seconds on your Mac OS X computer, be it ...


1

I'm not sure if this might be possible. Because SIP needs special DNS records which might be not configurable on a netgear router. Normally you have to create record like this: Type Service Protocol Port Weight Priority TTL Name Target SRV _sip _tls 443 1 100 1 Hour thedomain.co.uk sipdir.online.lync.com SRV _sipfederationtls _tcp ...


1

Short Answer? Name-based virtual hosting allows IP address accesses to web servers to be treated differently from hostname accesses to the same web servers. And many web systems administrators “dead end” IP address accesses for basic security reasons. Additionally, “Forbidden” messages are not typically sent by IP address access being blocked; my gut tells ...


1

The server isn't playing the audio file; it is only 'serving' it. The client does the audio processing. You should worry about the bandwidth instead. There is no way any normal connection can beat the transfer rate of an SSD drive, so I don't think you have to worry about the hardware itself. Bandwidth will be the bottleneck here. Do you think your ...


1

You have not specified the streaming server you plan on using but 512 megs should be more then adequate for Icecast. I've not used it in any signiificant way, but I found this post showing 1800 listeners on 512 megs was practical back in 2008. 1 TB capacity should be ample for 50 simultanous streams - provided the streams are 128k or less is you have a 10 ...


1

Someone looking for "the easiest" solution probably wants to use a GUI rather than the command line. Older versions of OS X had a checkbox in the Sharing Preference Pane that enabled the web server. You can replicate that functionality with the freeware https://clickontyler.com/web-sharing/


1

The free Anvil App is how I do this. It integrates with Hammer.app to display pre-processed sites, but you can also just add a static site folder. Sites can be accessed via a .dev site extension, which the browser sees properly to load external fonts, code, etc. http://anvilformac.com


1

That's an interesting difference, and not one I've come across before. JDBC connection properties are mostly optional, there are only a couple that are actually needed. You can click the "Add Property" button to give you another key/value pair which you can then populate with whatever property you want. Here is the GlassFish 4 administration guide, which ...


1

20.178 is the time in seconds with milliseconds after the dot. GoAccess will output 20.18 s. Here's the format to use: %h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %T So running the following should do it: goaccess -M -H -f log --log-format='%h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %T' --date-format='%d/%b/%Y'



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