SnapOverflow

SnapOverflow Logo SnapOverflow Logo

SnapOverflow Navigation

  • Home
  • Server
  • Ubuntu

Mobile menu

Close
  • Home
  • System Administrators
    • Hot Questions
    • New Questions
    • Tags
  • Ubuntu
    • Hot Questions
    • New Questions
    • Tags
  • Help
Home / user-88

ripper234's questions

Martin Hope
ripper234
Asked: 2018-08-19 01:29:59 +0800 CST

Is there a reason to use an SSL certificate other than Let's Encrypt's free SSL?

  • 148

Let's Encrypt are providing free SSL certificates. Are there any downsides compared to other, paid certificates e.g. AWS Certificate Manager?

ssl
  • 8 Answers
  • 24061 Views
Martin Hope
ripper234
Asked: 2012-05-22 06:00:11 +0800 CST

How to list s3fs mounts?

  • 3

How can I list the s3fs mounts that exist on an ubuntu system? I'd like to know to which bucket each mount is mapped.

Specifically, I have a specific mount (e.g. ~/s3/mymount), and would like to know to which S3 bucket its mapped.

amazon-s3 amazon-web-services s3fs
  • 3 Answers
  • 6022 Views
Martin Hope
ripper234
Asked: 2012-04-09 03:53:46 +0800 CST

Why does mod_security require an ACCEPT HTTP header field?

  • 8

After some debugging, I found that the core ruleset of mod_security blocks requests that don't have the (optional!) ACCEPT header field.

This is what I find in the logs:

ModSecurity: Warning. Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required. [file "/etc/apache2/conf.d/modsecurity/modsecurity_crs_21_protocol_anomalies.conf"] [line "41"] [id "960015"] [msg "Request Missing an Accept Header"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER"] [hostname "example.com"] [uri "/"] [unique_id "T4F5@H8AAQEAAFU6aPEAAAAL"]
ModSecurity: Access denied with code 400 (phase 2). Match of "rx ^OPTIONS$" against "REQUEST_METHOD" required. [file "/etc/apache2/conf.d/modsecurity/optional_rules/modsecurity_crs_21_protocol_anomalies.conf"] [line "41"] [id "960015"] [msg "Request Missing an Accept Header"] [severity "CRITICAL"] [tag "PROTOCOL_VIOLATION/MISSING_HEADER"] [hostname "example.com"] [uri "/"] [unique_id "T4F5@H8AAQEAAFU6aPEAAAAL"]

Why is this header required? I understand that "most" clients send these, but why is their absence considered a security threat?

http apache-2.2 mod-security
  • 2 Answers
  • 12793 Views
Martin Hope
ripper234
Asked: 2012-03-22 03:16:58 +0800 CST

Can you pass user/pass for HTTP Basic Authentication in URL parameters?

  • 228

I believe this is not possible, but someone I know insisted that it works. I don't even know what parameters to try, and I haven't found this documented anywhere.

I tried http://myserver.com/~user=username&password=mypassword but it doesn't work.

Can you confirm that it's not in fact possible to pass the user/pass via HTTP parameters (GET or POST)?

http authentication http-basic-authentication
  • 5 Answers
  • 1195710 Views
Martin Hope
ripper234
Asked: 2012-01-17 02:30:12 +0800 CST

Can you connect to Amazon VPC VPN from Windows 7 without a hardware VPN on your end?

  • 3

I found this thread that seems to suggest it's not possible to connect to Amazon VPC VPN from a Windows 7 box without an external hardware (router) on the client side.

Is this true, or did I miss anything?

If it is possible, are there instructions on how to do this?

windows vpn amazon-ec2 amazon-web-services amazon-vpc
  • 2 Answers
  • 5387 Views
Martin Hope
ripper234
Asked: 2012-01-17 01:45:36 +0800 CST

How can I configure mod_proxy not specifically not cache 503 errors?

  • 11

This is my mod_proxy config:

<IfModule mod_proxy.c>
<Proxy *>
Order deny,allow
Allow from all
</Proxy>

ProxyPass /manage/ http://localhost:9000/manage/
ProxyPassReverse /manage/ http://localhost:9000/manage/
</IfModule>

I find that whenever the other website I have on port 9000 doesn't respond correctly, I get sustained 503 errors - that persist even after the website is fixed. In other words, the 503 response seems to be cached.

How can I disable it? I don't think I have enabled caching myself, perhaps this is the default.

apache-2.2 mod-proxy
  • 1 Answers
  • 7806 Views
Martin Hope
ripper234
Asked: 2012-01-03 01:14:17 +0800 CST

Do Apache config files support block commenting?

  • 58

You can use # to comment out individual lines. Is there a syntax for commenting out entire blocks?

I've tired surrounding the block (specifically a <Directory> block) with <IfModule asdfasdf>...</IfModule>, but that didn't work.

apache-2.2 configuration
  • 3 Answers
  • 63700 Views
Martin Hope
ripper234
Asked: 2011-11-08 03:06:22 +0800 CST

Are Apache (httpd) server logs stored synchronously?

  • 4

Is storing the logs a blocking action? (Does the request block until logs are written)? Or are they asynchronous?

What happens if writing to the logfile fails, or just take a long time?

apache-2.2
  • 1 Answers
  • 342 Views
Martin Hope
ripper234
Asked: 2011-11-04 06:27:29 +0800 CST

Can Apache2 be configured to store a part of the access log on a separate location?

  • 2

We plan to use a tracking pixel to collect some analytics. It would be very helpful to configure a different policy for storing access logs to this pixel (http://ourdomain.com/tracking.png?someParameter=123)

Can Apache be configured to filter and store only the access logs that contain a specific URL pattern on a different location than the main access log? We still want to keep the full access log on the initial partition, with a different retention policy.

apache-2.2
  • 1 Answers
  • 59 Views
Martin Hope
ripper234
Asked: 2011-11-02 02:54:39 +0800 CST

What's the mean time between failure for EC2?

  • 5

I'm currently running a single EC2 instance, and plan to move to a fault tolerant architecture eventually. Something that will help me decide how urgent this migration is is EC2 MTBF.

Is there any data about how often EC2 machines fail?

amazon-ec2
  • 3 Answers
  • 4927 Views
Martin Hope
ripper234
Asked: 2011-10-28 00:16:17 +0800 CST

When are OCSP requests sent by web browsers?

  • 2

I'm testing my https page via webpagespeedtest on IE8, and in one run I noticed a bunch of OSCP requests sent to oscp.godaddy.com. I never noticed any such requests in previous runs.

When do browsers decide to send such requests? Does it have to do with the fact I moved hosting providers yesterday?

ssl ocsp
  • 1 Answers
  • 1531 Views
Martin Hope
ripper234
Asked: 2011-10-26 11:07:23 +0800 CST

What persistent changes can I make to an Amazon Beanstalk configuration?

  • 2

(Cross posted to AWS forums)

We have a static family of static websites we're thinking of hosting on Amazon Beanstalk. We currently depend on ssh access for our deployment process:

  • We upload a zip file and unzip locally unzip version.zip
  • We maintain symlinks to have shorter alias for some component (e.g. instead of http://oursite.com/verylongcustomername/somemoredetails we user http://oursite.com/K38da/Mc7za
  • We're using quick rollback and patching on the server by editing specific files: mv latest_ver latest_ver.bak;mv older_ver latest_ver and vim foo.js

We're considering moving to Amazon Beanstalk, and so I installed and configured a sample website. I setup a symlink structure, uploading a version via scp, and edited Tomcat's configuration files. However, I'm not sure if any of these changes are maintained by the Beanstalk manager (in fact I saw some of them did not take when an instance was restarted).

Is there any way to have the Beanstalk manager remember local changes I do to the instance's filesystem, and carry that over to new instances it creates?

If the answer is no, then it seems I should forget about Beanstalk and use an EC2 image directly (I can then create an AMI that includes my custom modifications and relaunch if needed).

amazon-ec2 amazon-beanstalk
  • 1 Answers
  • 370 Views
Martin Hope
ripper234
Asked: 2011-10-06 04:27:12 +0800 CST

An SSL certificate for *.mydomain.com doesn't work for mydomain.com

  • 2

I've created a self-signed certificate via openssl for *.mydomain.com, and it works e.g. for www.mydomain.com. However, when I go to mydomain.com directly in Chrome, I get an error (You are attempting to reach mydomain.com, but instead you actually reached a server identifying itself as *.mydomain.com).

Should the *. certificate cover the main domain as well? What should I do to resolve?

ssl ssl-certificate openssl
  • 2 Answers
  • 711 Views
Martin Hope
ripper234
Asked: 2011-02-22 00:07:52 +0800 CST

What's the easiest way to auto-backup an EC2 instance? [duplicate]

  • 6
This question already has answers here:
Closed 9 years ago.

Possible Duplicate:
What’s the easiest way to back up EC2 instances automatically?

I have an EBS-backed Amazon EC2 instance. I would like to create a daily backup schedule, and keep, say, a week's worth of daily backups, plus a few older images (from 2,3,4 weeks ago). I don't mind creating the backups on the fly, with the snapshot mechanism, but I would like an easy wrapper to manage it for me.

What is the simplest way to set this up? How much would this cost me, for a micro instance?

backup amazon-ec2
  • 4 Answers
  • 5236 Views
Martin Hope
ripper234
Asked: 2010-12-18 14:22:12 +0800 CST

What's SUSE linux? Why does it cost more on Amazon EC2?

  • 4

What's the difference between EC2's "linux/unix" server, and "SUSE Linux" ? Why does SUSE cost more? Is it better?

linux amazon-ec2 sles
  • 1 Answers
  • 474 Views
Martin Hope
ripper234
Asked: 2010-09-17 01:54:09 +0800 CST

Is it possible to configure Nginx to send TCP keepalive?

  • 6

On TCP connections held by NGinx, can it be configured to send TCP Keepalive

(Not HTTP KeepAlive!)

nginx tcpip
  • 4 Answers
  • 11597 Views
Martin Hope
ripper234
Asked: 2010-02-25 02:32:55 +0800 CST

What is the best hard drive for random-reading small blocks

  • 4

We need to do random reads (seeks) on 5 KB blocks from a huge file (150 gigabyte). What hard drive is the best suited for this type? What is the expected performance from an SSD in this scenario?

I heard that SSD excel in random reads, but perhaps not when the block sizes are this small.

hardware hard-drive ssd
  • 4 Answers
  • 384 Views
Martin Hope
ripper234
Asked: 2009-12-10 06:33:55 +0800 CST

What causes a delay of 100 ms in initiating an HTTP connection?

  • 4

Settings: this is a quad CPU machine, plenty strong, not loaded at all (neither CPU nor network), the client is a Windows Server 2008 64bit, the server is a linux box.

I have four threads that are all issuing HTTP requests starting at the same time. The connections are initiated to IPs X, X, Y, Z (two connections to X, one to Y and Z). All targets are on the local LAN.

I am seeing that connections to X, Y and Z are formed (SYN-SYN/ACK), and the second connection to to X is with a 100 ms delay. Meaning, the machine is not sending the second SYN to X for a full 100 ms.

Could this be related to TCP Offload Engine? What else could be causing this delay?

Edit - Another suspect is the client code - it's written in Java, uses HttpURLConnection.

tcpip
  • 6 Answers
  • 1515 Views
Martin Hope
ripper234
Asked: 2009-10-13 02:28:45 +0800 CST

Auto-login in Windows Server 2008

  • 13

Does anyone know a (verified) method to cause a specific user to auto-login after a system reboot, that works on Server 2008?

I've tried tweaking some registry values (I don't have the link right now) and we've also tried a couple of programs (one free program didn't work, another one costs money).

Edit Since several people have asked for my reasons - I need to run Selenium web tests on a TeamCity build agent, and they don't work well when the build runs as a windows service. Running them in a user session solves the problem.

windows
  • 7 Answers
  • 42358 Views
Martin Hope
ripper234
Asked: 2009-05-01 00:17:28 +0800 CST

Any reason to use Windows Server 2003 over Server 2008?

  • 6

For a unit test server (TeamCity Agent) - is there any reason to choose old (and reliable?) Win2003 SP2 over Server 2008, assuming both are available and the machine is decent?

windows windows-server-2008 windows-server-2003
  • 10 Answers
  • 2279 Views

Sidebar

Stats

  • Questions 681965
  • Answers 980273
  • Best Answers 280204
  • Users 287326
  • Popular
  • Answers
  • Marko Smith

    Can you pass user/pass for HTTP Basic Authentication in URL parameters?

    • 5 Answers
  • Marko Smith

    Ping a Specific Port

    • 18 Answers
  • Marko Smith

    Check if port is open or closed on a Linux server?

    • 7 Answers
  • Marko Smith

    How to automate SSH login with password?

    • 10 Answers
  • Marko Smith

    How do I tell Git for Windows where to find my private RSA key?

    • 30 Answers
  • Marko Smith

    What's the default superuser username/password for postgres after a new install?

    • 5 Answers
  • Marko Smith

    What port does SFTP use?

    • 6 Answers
  • Marko Smith

    Command line to list users in a Windows Active Directory group?

    • 9 Answers
  • Marko Smith

    What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats?

    • 3 Answers
  • Marko Smith

    How to determine if a bash variable is empty?

    • 15 Answers
  • Martin Hope
    Davie Ping a Specific Port 2009-10-09 01:57:50 +0800 CST
  • Martin Hope
    Smudge Our security auditor is an idiot. How do I give him the information he wants? 2011-07-23 14:44:34 +0800 CST
  • Martin Hope
    kernel Can scp copy directories recursively? 2011-04-29 20:24:45 +0800 CST
  • Martin Hope
    Robert ssh returns "Bad owner or permissions on ~/.ssh/config" 2011-03-30 10:15:48 +0800 CST
  • Martin Hope
    Eonil How to automate SSH login with password? 2011-03-02 03:07:12 +0800 CST
  • Martin Hope
    gunwin How do I deal with a compromised server? 2011-01-03 13:31:27 +0800 CST
  • Martin Hope
    Tom Feiner How can I sort du -h output by size 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich What is a Pem file and how does it differ from other OpenSSL Generated Key File Formats? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent How to determine if a bash variable is empty? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus How do you find what process is holding a file open in Windows? 2009-05-01 16:47:16 +0800 CST

Related Questions

Trending Tags

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • Home
  • Questions
    • Hot Questions
    • New Questions
  • Tags
  • Help

Footer

SnapOverflow

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Help

© 2022 SOF-TR. All Rights Reserve