Search results

  1. Steve Meacham

    Does OLS cache pages with 403 error code (Forbidden)?

    Gilles, Error 403: "The server understood the request, but is refusing to authorise it.", RFC 7231. This doesn't sound like something OLS would cache, but maybe an admin can prove me wrong. You didn't specify what files or directories being requested result in this error, or what your...
  2. Steve Meacham

    Multiple Redirects with domain name

    I've refined @Cold-Egg's rewrite rule to avoid the domain name hard-coding: Now it even works in a VHost template. You may prefer a 301 redirect instead of 307 once you're confident everything works. # Force HTTPS and WWW RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR,NC] RewriteCond %{HTTPS} off...
  3. Steve Meacham

    Trailing Slash Error

    Give this a try, Saz. Once you are satisfied, the 307s (temporary) can be changed to 301s (permanent): I don't put it in .htaccess, though. I added it to the top of my Rewrites in the Rewrite tab in OLS. # Remove trailing slash from non-filepath urls RewriteCond %{REQUEST_URI} /(.+)/$...
  4. Steve Meacham

    What is the optimal arrangement for multiple HTTP + HTTPS websites?

    Got it. I'll rewrite all this in a while to get verification from Eric or someone that I found the correct way to have just two listeners (80 and 443), but it's working for me now.
  5. Steve Meacham

    What is the optimal arrangement for multiple HTTP + HTTPS websites?

    Eric and everyone, I've been able to reduce the number of listeners by almost half now. All my sites are HTTPS, and any HTTP access will be rewritten to HTTPS and redirected with a 301. Therefore, I've been able to replace all of the per-domain HTTP listeners with a single HTTP listener...
  6. Steve Meacham

    Should I switch from nginx?

    It sounds like a huge undertaking for a pretty vague problem statement. I've seen benchmarks of well-tuned nginx with performance that challenges that of LS + lscache out-of-the-box. If your problem is just scaling, you may find better ROI by just throwing some more hardware (money) at the...
  7. Steve Meacham

    It's so quiet in here! Hello, my name is Steve and I'm a...

    Sysop. Is that even still a thing? I'm actually a code slinger at heart, going back to the 80's, and a do it yourselfer. It took years to convince me to take the eight physical doubly-redundant-in-every-way Pentium servers plus a Tandy 386SX DMZ server out of service and use a Linode VPS...
  8. Steve Meacham

    What is the optimal arrangement for multiple HTTP + HTTPS websites?

    Thanks! Lemme see if I have this right, OK? 1. There is a one-to-one mapping of HTTPS listeners to certs. 2. That means that if all three of these domains are on a single SSL cert (e.g. it's a wildcard cert or it's using the magic of a subject CN and multiple ANs), a single HTTPS listener will...
  9. Steve Meacham

    Using OLS 1.6.16, cannot log into non-HTTP WebAdmin

    Mahalo for your timely response. Your #1 is actually the point, because I don't want the admin site to be exposed to the internet. At all. Rather, I only want it exposed to localhost, for security. This part works great using HTTPS. Your #2 is appreciated, and I hope it helps others who...
  10. Steve Meacham

    Using OLS 1.6.16, cannot log into non-HTTP WebAdmin

    Aloha smart people, I have configured a listener for WebAdmin, set Secure to Yes, listening on port 7080, and listening only to localhost IP [::1]. I could add an additional listener for 127.0.0.1, but it doesn't affect this bug report. WebAdmin is therefore impossible to access directly from...
  11. Steve Meacham

    What is the optimal arrangement for multiple HTTP + HTTPS websites?

    Aloha! Edited: Inserted #5 in case it is important or convenient. (Oct 28th) Consider the following scenario, which does actually work. 1. Three VHOSTS: www.example.com, www.example.org, and www.example.net. 2. Each has a corresponding domain name, and each has a domain alias without the www...
  12. Steve Meacham

    OLS equivalent of "AddDefaultCharset UTF-8" in httpd.conf

    I've set the character encoding the VHOST's Context's default character encoding, and it works great...online, because it puts the encoding in to the HTTP response headers. But if someone were to save my web page to view offline, the character encoding is unknown. In Apache, /etc/httpd.conf...
  13. Steve Meacham

    Multiple Redirects with domain name

    Just replace all that with @Cold-Egg's answer. Place those three lines in the VHOST Rewrite tab's "Rewrite Rules" field. Be sure to select "Enable Rewrite" on the same tab.
Top