SSL version of site served by Main Server instead of virtual host (Apache 2.2.15) I have multiple virtual hosts on port 80 and 443. They all work. The problem comes when addressing the web server by a name not mentioned as a vhost.  The documentation says:     If the lookup fails (the IP address wasn't found) the request is   served from the default vhost if there is such a vhost for the port   to which the client sent the request. If there is no matching   default vhost the request is served from the main_server.   But in my case content is server from the main_server instead of the default vhost. I have tried using both _default_ and * for this default vh  I have  NameVirtualHost *:80 NameVirtualHost *:443   And directives like:  &lt;VirtualHost *:80&gt;         ServerName example.com         ServerAlias www.example.com   and   &lt;VirtualHost *:443&gt;         ServerName example.com         ServerAlias www.example.com   Running apachectl -S Shows my carefully named default vhost.  wildcard NameVirtualHosts and _default_ servers: *:443                  is a NameVirtualHost      default server 00default.example.com (/etc/httpd/sites.d/00default.example.com:29)      port 443 namevhost 00default.example.com (/etc/httpd/sites.d/00default.example.com:29)          alias www.00default.example.com      port 443 namevhost example.com (/etc/httpd/sites.d/example.com:29)          alias www.example.com  ...  *:80                   is a NameVirtualHost      default server 00default.example.com (/etc/httpd/sites.d/00default.example.com:1)      port 80 namevhost 00default.example.com (/etc/httpd/sites.d/00default.example.com:1)          alias www.00default.example.com      port 80 namevhost example.com (/etc/httpd/sites.d/example.com:1)         alias www.example.com   If I visit  http://www.example.com/phpinfo/   It works fine. But  https://www.example.com/phpinfo/   Fails. This is because Apache attempts to serve this request from the document root configured for the main server in the default conf file. "Main server" is defined here:   www.example.com is the actual hostname of the server and  https://www/phpinfo/   or  https://ip.address/phpinfo/   Both work.  It's my understanding that a wildcard default vhost overrides the main server config as it is doing in the case of the HTTP version. Why does it not work for the HTTPS version?  Sample Vhost config:  &lt;VirtualHost *:443&gt;     ServerName example.com     ServerAlias www.example.com     ServerAdmin webmaster@localhost     DocumentRoot /var/www/example.com     #ErrorLog logs/example.com/error_log     #TransferLog logs/example.com/access_log     SSLEngine on     SSLCertificateFile /etc/httpd/certs.d/example.com.crt     SSLCertificateKeyFile /etc/httpd/certs.d/example.com.key     SSLCertificateChainFile /etc/httpd/certs.d/example.com.chain     &lt;Directory /&gt;             Options FollowSymLinks             AllowOverride None     &lt;/Directory&gt;     &lt;Directory /var/www/example.com/&gt;             AddType application/x-httpd-php .php     &lt;/Directory&gt;     &lt;Directory /var/www/example.com/&gt;             Options Indexes FollowSymLinks MultiViews             AllowOverride All             Order allow,deny             allow from all     &lt;/Directory&gt; &lt;/VirtualHost&gt;   There is also a section preceding the one above, for port 80, that is identical except for the port and the absence of the lines starting "SSL".
Multiple SSL domains on the same IP address and same port? This is a  about Hosting multiple SSL websites on the same IP.   I was under the impression that each SSL Certificate required it's own unique IP Address/Port combination. But the  is at odds with this claim.  Using information from that Question, I was able to get multiple SSL certificates to work on the same IP address and on port 443. I am very confused as to why this works given the assumption above and reinforced by others that each SSL domain website on the same server requires its own IP/Port.  I am suspicious that I did something wrong.  Can multiple SSL Certificates be used this way?
I accidentally opened too many menus (or windows) and I want to reset them to default.  It is really annoying, and effecting my animation.  Thanks I have played and tried to GM games since I was in elementary school, beginning with games like Shadowrun, Earthdawn, and Champions. Recently, I've gotten dack into gaming with a variety of other games (newer Shadowrun and Earthdawn, plus TOON! and Outbreak:Undead).  I've found examples of actual play and advice on how to actually GM a game in games to be lacking. I can only help but feel I am not alone as someone who isn't already a LITERAL dungeon MASTER.  I fully realize that there are an unlimited number of GM styles, personalities, etc. I do not think I am a very good GM though. No one else wants to be the GM, and few care enough to learn the complex rules that I often have to assist with and explain AS WE PLAY. Being left with the responsibility is quite overwhelming unless I create dynamic encounters or make it all up on the spot. I'm often left having no idea what to do.  Examples of Why I Think I Need Help  This question isn't about these examples so please don't dig into them in the answers - they're here to explain the basic things that leave me feeling like I don't know how to proceed as a GM.  I've read preparation is important, but last time I tried to make a story, the players immediately killed the primary character (a friendly person.) within about 2 minutes of starting the game. While I realize now that I let the dice take control over the story, it was rather difficult to continue a story that relied on this friendly character, with the players making enemies with the character's faction. It is still discouraging when my only other attempt at a prepared story ended with the players wanting to go in a complete opposite direction of where I planned. Both times, the hours of work I put into it were completely wasted, leaving me as ignorant as I always was before.  My group often wants to play Shadowrun, Earthdawn, or L5R- but I feel as though I am a horrible GM. The last time we played Shadowrun, I was bored out of my mind as we rolled hundreds of dice to do an obvious straight-forward "kick down the door" mission.   If I make security as I believe it should or as the forum threads describe their security or a few example missions I can scrounge up (examples of stories, not actual gameplay), my players literally feel completely hopeless as to how to achieve their mission without total failure.   One time when I was a teenager, I had players blow up at me saying "We have no idea what would work. You're telling us that our character's experience or the ally operative says that would get us killed, but what else can we do?" Since there are no examples of what players can do - I am left with the same feeling as the players. As an adult, I've had a similar occurrence where a player said to me, "I don't know what to do. I don't think we can even begin this mission." I had to make something up and just go with it, creating an NPC group (that fit in with the story) that goes in before the players to do something stupid so they don't have to. Mainly because I ALSO didn't know how to accomplish the mission, so I acted as the players would using my NPC group. Extremely boring and IMO a failed dungeon run.  I've had successful stories, but I've had more boring encounters than successful ones. Seeing as how roleplaying takes endless hours to complete a story, I do not see benefit in an activity that wastes more time than is enjoyable.  How Do You Learn To GM?  Where are the resources? Books, blogs, gameplay examples? Am I missing them? How did YOU learn to be a good GM? Or do you feel as bad at this as I do, even when it's a successful, fun encounter? Left-pad printf with spaces How can I pad a string with spaces on the left when using printf?  For example, I want to print "Hello" with 40 spaces preceding it.  Also, the string I want to print consists of multiple lines.  Do I need to print each line separately?  EDIT: Just to be clear, I want exactly 40 spaces printed before every line. Determining if an arbitrary point lies inside a triangle defined by three points? Is there an algorithm available to determine if a point P lies inside a triangle ABC defined as three points A, B, and C? (The three line segments of the triangle can be determined as well as the centroid if they are needed.)  Grid space is defined as Screen Space, that is, 2D Cartesian with the Y-Axis flipped so "up" is negative y and the origin is the upper left corner. Does anybody know how to move the keyboard caret in a textbox to a particular position?  For example, if a text-box (e.g. input element, not text-area) has 50 characters in it and I want to position the caret before character 20, how would I go about it?  This is in differentiation from this question:  , which requires jQuery. Are we inside a black hole? I was surprised to only recently notice that      An object of any density can be large enough to fall within its own   Schwarzschild radius.   Of course! It turns out that supermassive black holes at galactic centers can have an average density of less than water's.  Somehow I always operated under the assumption that black holes of any size had to be superdense objects by everyday standards.  Compare the Earth to collapsing into a mere 9mm marble retaining the same mass, in order for the escape velocity at the surface to finally reach that of light.  Or Mt. Everest packed into one nanometer.  Reading on about this , it increases proportionally with total mass.  Assuming matter is accumulated at a steady density into a spherical volume, the volume's radius will only "grow" at a cube root of the total volume and be quickly outpaced by its own gravitational radius.  Question: For an object the , what would have to be its diameter for it to qualify as a black hole (from an external point of view)?  Would this not imply by definition that:   The Earth, Solar system and Milky Way are conceivably inside this black hole? Black holes can be nested/be contained within larger ones? Whether something is a black hole or not is actually a matter of perspective/where the observer is, inside or outside? I need an approach to allow delegated admins (i.e., non-Administators) to add members to Public Groups and Collaboration Groups (the GroupMember and CollaborationGroupMember objects).  I added a custom object (UserGroupRequest__c) to capture which Users should be added/removed to which Groups.    I've also built a batchable class to process the requests.  However, GroupMember is a Setup object, and CollaborationGroupMember is not.  So this doesn't work if I combine the operations in a single batchable class.  Should I instead be using 2 batch classes, calling one from the finish method of the other?    Any recommendations on how best to proceed?  Am I way off base?    Would a trigger on the Request object perhaps be better? I'm guessing that there may be a permission problem if this is attempted via a trigger as the delegated admins won't be able to add users to public Groups.  Also, I'm guessing the trigger approach would run into the same mixed DML issue - on Insert of the Custom object, I would need to Insert/Delete from GroupMember and from CollaborationGroupMember, and then perform a 2nd update on the Custom object to indicate that processing was completed... What is a good data plan for Internet surfing in northern Italy? I've checked the webpages of some their providers, but franly, just like in the case of those in my own language, I literally cannot find my way around them. So if you wouldn't mind sharing a word of two or advice.  I'm looking for a good solution for mobile internet surfing in northern Italy, that can be connected to a laptop (you know, that usb stick with a SIM card inside kind of thing). 15 Gb or so at some decent speed. Can you perhaps give a recommendation or two of what to get?    Edit: Just to define what I'm looking for exactly. A data plan of 15 Gb with an internet key (usb stick into which a SMS card goes) that you plug into a laptop. Preferably non-contractual, so I can cancel when I leave. I am not interested in surfing on my mobile phone since due to size I still prefer the smaller Nokia-like models for calls (smaller to carry) - no internet on them. WCF - Faults / Exceptions versus Messages We're currently having a debate whether it's better to throw faults over a WCF channel, versus passing a message indicating the status or the response from a service.  Faults come with built-in support from WCF where by you can use the built-in error handlers and react accordingly. This, however, carries overhead as throwing exceptions in .NET can be quite costly.  Messages can contain the necessary information to determine what happened with your service call without the overhead of throwing an exception. It does however need several lines of repetitive code to analyze the message and determine actions following its contents.  We took a stab at creating a generic message object we could utilize in our services, and this is what we came up with:  public class ReturnItemDTO&lt;T&gt; {     [DataMember]     public bool Success { get; set; }      [DataMember]     public string ErrorMessage { get; set; }      [DataMember]     public T Item { get; set; } }   If all my service calls return this item, I can consistently check the "Success" property to determine if all went well. I then have an error message string in the event indicating something went wrong, and a generic item containing a Dto if needed.  The exception information will have to be logged away to a central logging service and not passed back from the service.  Thoughts? Comments? Ideas? Suggestions?  Some further clarification on my question  An issue I'm having with fault contracts is communicating business rules.  Like, if someone logs in, and their account is locked, how do I communicate that? Their login obviously fails, but it fails due to the reason "Account Locked".  So do I:  A) use a boolean, throw Fault with message account locked  B) return AuthenticatedDTO with relevant information Is there a way to fully stretch one line of text on the full width of the page, without manually setting the letter spacing, no matter how many characters on the line? Proof of the formula $1+x+x^2+x^3+ \cdots +x^n =\frac{x^{n+1}-1}{x-1}$ Let $X \sim Bin(n,p)$ show that $X/n \nsim Bin()$ Let $X \sim Bin(n,p)$   Part A.  Show that the argument      "Then $X/n \sim Bin()$ with $E[X/n]=p$and $Var[X/n]=pq/n$"    is false.   My book says we can prove this result using a moment generating function. But to me it makes no intuitive sense: We have Bin-distributed RV $X$ and if we rescale it with $1/n$ of course it will be Bin-distributed.  And we know from standard formulas that $E[aX]=aE[X]$ and $Var[aX] = a^2Var[X]$ so I think the argument is correct.   (For full disclosure, the argument we should falsify according to the book is "Let X be a binomial random variable with mean np and variance np(1−p). Show that the ratio X/n also has a binomial distribution with mean p and variance p(1−p)/n." But I think the argument is correct. )    Ok, now I get part A. Here is Part B. Prove it using the moment generating function of $X/n$.   Attempt: I get $$m_X(t)=E[\exp(tX/n)]=(m_X(t))^{1/n}$$ Is there actually a 0 probability of finding an electron in an orbital node? Gradient and Swiftest Ascent I want to understand intuitively why it is that the gradient gives the direction of steepest ascent. (I will consider the case of $f:\mathbb{R}^2\to\mathbb{R}$)  The standard proof is to note that the directional derivative is $$D_vf=v\cdot \nabla f=|\nabla f|\,\cos\theta$$ which is maximized at $\theta=0$. This is a good verification, but it doesn't really help me understand the result. How do constant aperture zoom lenses work? How do I print a double value with full precision using cout? Suppose my speed is normally 30 feet. I get hit with a Slow spell, reducing my speed to 15 feet, and then I get knocked prone. How many feet of movement do I need to spend in order to stand back up from prone? How many feet of movement do I have left over once I've stood up?  What if I am also hit with a Ray of Frost spell while slowed, reducing my speed to 5 feet for 1 round? Am I able to stand up at all? Integral closure of $\mathbb{Z}$ in $\mathbb{C}$ is not finitely generated as a $\mathbb{Z}$-module? Let     $$ \mathbb{Z}^{'}_{\mathbb{C}}=\{ z \in \mathbb{C} | \exists f \in \mathbb{Z}[X] \text{ monic such that } f(z)=0\} $$   be the integral closure of $ \mathbb{Z} $ in $ \mathbb{C} $. Prove that $ \mathbb{Z}^{'}_{\mathbb{C}} $ is not finitely generated as a $ \mathbb{Z} $-module.  My attempt: Suppose $ \mathbb{Z}^{'}_{\mathbb{C}}=\mathbb{Z}\alpha_{1}+...+\mathbb{Z}\alpha_{n} $ for some $ \{ \alpha_{i}\}_{i=\overline{1,n}} \subset \mathbb{Z}^{'}_{\mathbb{C}} $. I know that given $ \alpha , \beta \in \mathbb{Z}^{'}_{\mathbb{C}} $ with minimal polynomials of degrees $ m $ and $ n $ respectively, then we can construct a monic polynomial with integral coefficients $ P(z)=\prod(z-(\alpha_{i}+\beta_{j})) $ where $ \alpha_{i},\beta_{j} $ are the conjugates of $\alpha $ , $\beta $ and therefore the minimal polynomial of $ \alpha + \beta $ has degree $ \leq mn $.   I was thinking that then the degrees of the minimal polynomials of the elements of $ \mathbb{Z}\alpha_{1}+...\mathbb{Z}\alpha_{n} $ could be somehow bounded by a certain constant, whereas $ \mathbb{Z}^{'}_{\mathbb{C}}$ contains elements whose degrees of the minimal polynomials are arbitrarily large, take $ 2^{\frac{1}{n}} $ for example,$ n\geq 2$. I think this works when we are asked to prove that the set of all algebraic numbers $ \overline{\mathbb{Q}} $ is not a finitely dimensional $\mathbb{Q}$-vector space, but I don't know how to proceed in my case.  I would really appreciate any ideas, hints or solutions. Thank you very much! How to make putty to not break my session after some time? Each time putty is closing the session after some time if it is idle.  There is no time parameter on putty, so how can I keep my putty ssh session always Alive? Unable to format internal drive as APFS on 2018 MacBook Pro