HTTP: The Definitive Guide says     An origin server that isn’t virtually hosted, and doesn’t allow   resources to differ by the requested host, may ignore the Host header   field value. But any origin server that does differentiate resources   based on the host must use the following rules for determining the   requested resource on an HTTP/1.1 request:         If the URL in the HTTP request message is absolute (i.e., contains a scheme and host component), the value in the Host header is ignored   in favor of the URL.   If the URL in the HTTP request message doesn’t have a host, and the request contains a Host header, the value of the host/port is obtained   from the Host header.   If no valid host can be determined through Steps 1 or 2, a 400 Bad Response response is returned to the client.      Where is "the URL in the HTTP request message"?  Is it the one in the request line (in the first line in a HTTP request, after method such as GET)?  Thanks.
The following quote from  assumes "the URL" comes from somewhere and uses it to restrict the Host header. Where does "the URL" come from? Is it from the first line of a HTTP request (e.g. after GET), or from the input to a web client (e.g. an argument to curl, or the input in the address bar of a web browser)? Thanks.     The Host header specifies the Internet host and port number for the   resource being requested, as obtained from the original URL:  Host = "Host" ":" host [ ":" port ]       In particular:      • If the Host header does not contain a port, the default port for the   scheme is assumed.      • If the URL contains an IP address, the Host header should contain   the same address.      • If the URL contains a hostname, the Host header must contain the   same name.      • If the URL contains a hostname, the Host header should not contain   the IP address equivalent to the URL’s hostname, because this will   break virtually hosted servers, which layer multiple virtual sites   over a single IP address.      • If the URL contains a hostname, the Host header should not contain   another alias for this hostname, because this also will break   virtually hosted servers.
How can I log into a different Google account? It only shows one of my Google accounts. I want to log into a different one but I don't want them connected in any way. What do I do? Which Ubuntu to use alongside Windows 7? I'm robotic engineer. I'm using OpenSCAD to model robotic components (gears, pulleys, parts, etc). But I need application to model physics and interaction of the components (for i.e. how will robot move if I will rotate current gear).  So, is it possible to import OpenSCAD models into Blender and model interactions in it?  I have models in STL format (for i.e. gears). I need to make reductor from it and see how it moves (if possible - measure rotation speed and torque). What's the difference between the nvidia-current, and nvidia-current-updates packages? What's the difference between the , and  packages?  The former has a higher version number, and the description of the packages are the same.    Which do I use? Which is the most recent one What's the purpose of this split packaging? Very large log files, what should I do? ( deals with a similar issue, but it talks about a rotated log file.)  Today I got a system message regarding very low /var space.   As usual I executed the commands in the line of sudo apt-get clean which improved the scenario only slightly. Then I deleted the rotated log files which again provided very little improvement.  Upon examination I find that some log files in the /var/log has grown up to be very huge ones. To be specific, ls -lSh /var/log gives,   total 28G -rw-r----- 1 syslog            adm      14G Aug 23 21:56 kern.log -rw-r----- 1 syslog            adm      14G Aug 23 21:56 syslog -rw-rw-r-- 1 root              utmp    390K Aug 23 21:47 wtmp -rw-r--r-- 1 root              root    287K Aug 23 21:42 dpkg.log -rw-rw-r-- 1 root              utmp    287K Aug 23 20:43 lastlog    As we can see, the first two are the offending ones. I am mildly surprised why such large files have not been rotated.  So, what should I do? Simply delete these files and then reboot? Or go for some more prudent steps?  I am using Ubuntu 14.04.  UPDATE 1  To begin with, the system is only several months old. I had to install the system from scratch couple of months back after a hard disk crash.  Now, as advised in ,  I first checked the offending log files using tail, no surprise there. Then, for deeper inspection, I executed this script from the .  for log in /var/log/{syslog,kern.log}; do    echo "${log} :"   sed -e 's/\[[^]]\+\]//' -e 's/.*[0-9]\{2\}:[0-9]\{2\}:[0-9]\{2\}//' ${log} \   | sort | uniq -c | sort -hr | head -10 done   The process took several hours.  The output was in the line of,   /var/log/syslog : 71209229  Rafid-Hamiz-Dell kernel:  sda3: rw=1, want=7638104968240336200, limit=1681522688 53929977  Rafid-Hamiz-Dell kernel:  attempt to access beyond end of device 17280298  Rafid-Hamiz-Dell kernel:  attempt to access beyond end of device    1639  Rafid-Hamiz-Dell kernel:  EXT4-fs warning (device sda3): ext4_end_bio:317: I/O error -5 writing to inode 6819258 (offset 0 size 4096 starting block 54763121030042024)        &lt;snipped&gt;  /var/log/kern.log.1 : 71210257  Rafid-Hamiz-Dell kernel:  attempt to access beyond end of device 71209212  Rafid-Hamiz-Dell kernel:  sda3: rw=1, want=7638104968240336200, limit=1681522688    1639  Rafid-Hamiz-Dell kernel:  EXT4-fs warning (device sda3): ext4_end_bio:317: I/O error -5 writing to inode 6819258 (offset 0 size 4096 starting block 954763121030042024)    (/dev/sda3 is  my home directory. As we can find,   lsblk /dev/sda NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT sda      8:0    0 931.5G  0 disk  ├─sda1   8:1    0 122.1G  0 part / ├─sda2   8:2    0   7.6G  0 part [SWAP] └─sda3   8:3    0 801.8G  0 part /home    Why a process will want to write beyond the limit is actually outside the scope of my comprehension. Perhaps I will want to ask a different question in this forum if this continues even after a system update.)  Then, from  (you may want to check  for a deeper understanding), I executed,   sudo su - &gt; kern.log &gt; syslog   Now, these files have zero sizes. The system is running fine before and after a reboot.   I will watch these files (along with others) in the next few days and report back should they behave out-of-line.  As a final note, both  the offending files (kern.log and syslog), are set to be rotated, as inspection of the files (grep helped) inside  /etc/logrotate.d/ shows.  UPDATE 2  The log files are actually rotated. Looks like the large sizes were attained on a single day. I'm finishing professional school and over the years have acquired a pile of notes and articles that I'd like to hang onto.  I'd like to add to them and create sort of an archive of article and files that may be useful down the road.  I'd also like to organize this collection of files not only by simple grouping but also with tags.  I feel like that will make searching through them years later much easier.  Suggestions on software that would be good for this?  Just a general file manager, something that uses tags that can be attached to each file? I am in the middle of a problem and having trouble integrating the following integral:  $$\int_{-1}^1\frac1{(1+x^2)^2}\mathrm dx$$  I tried doing partial fractions and got:  $$1=A(1+x^2)+B(1+x^2)$$  I have no clue how to solve this since it is obvious there is no way to cancel out either $A$ or $B$ to get the other variable. Please guide me.  Thank you. Let $G$ be a finite semi-group with identity such that it has only one idempotent.Is $G$ a group?  It only remains to show that for any $a\in G$ $\exists b\in G$ such that $ab=ba=e$ where $e$ is the identity of $G$  Also $e$ is the only idempotent of $G$ .How to proceed next? What does the Recycle Bin in Windows actually do?  Is it just a glorified folder and a holding place for soon to be deleted files, or does it do something specific?  Specifically, are files that are "moved" to the Recycle Bin actually moved on the hard disc, or are just the pointers to the files moved?  I am a fairly experienced user, I just wanted a more depth explanation of the Recycle Bin. Are there any reputable studies on spanking? How to verify $H\otimes K \cong \bigoplus\limits_{i\in I}H$ Let $H,~K$ be the Hilbert space. if $\{v_{j}\}_{j\in J}\subset H$ and $\{w_{i}\}_{i\in I}\subset K$ are the orthonormal bases, then how to construct the isomorphic mapping: $H\otimes K \rightarrow \bigoplus\limits_{i\in I}H$. Here, the $H \otimes K$ is the tensor product of two Hilbert space. How to initialize HashSet values by construction? I found the following blog title without a question mark from :     How to ease Afghanistan’s progress in cricket   Is it grammatical, if we don't put question mark in questions of titles? I think this blog title should have been like this:     How to ease Afghanistan’s progress in cricket?   I also found the following blog title from  without a question mark:     Election rigging 101: How to steal a mandate   However, I found a question mark from other blog title of :     Elections 101: What is the ECP and what does it do on election day? Need help with proof for Dedekind cuts on $\mathbb{Q}^+$ I am working on a proof about Dedekind cuts on the positive rational numbers. I have been stuck for a while on the following point and would appreciate any help.  Given $x\in \mathbb{Q}^+$ such that $x^2&lt;2$, how to find $y\in \mathbb{Q}^+$ such $y&gt;x$ and $y^2&lt;2$? sed -i - edit files in place does not work in compound commandq This question was prompted by . Notoriously, if you calculate the Schwarzschild coordinate time for anything, matter or light, to reach the event horizon the result is infinite. This implies that the universe ages by an infinite time before someone falling into the black hole reaches the event horizon, so could that person see the universe age by an infinite time?  To be more precise, suppose the observer starts falling from rest at time $t = 0$ and some initial distance $r &gt; r_s$. If we wait for some time $T$ then shine a light ray at the falling observer. Will the light ray always reach the falling observer before they cross the event horizon? If not, what is the formula for the longest time $T$ that we can wait and still be sure the ray will catch the observer? If $T$ is not bounded it implies that observer could indeed see the end of the universe.  I can think of a qualitative argument for an upper limit on $T$, but I'm not sure how sound my argument is. The proper time for the observer to fall to the event horizon is finite - call this $\tau$. The proper time for the light ray to reach the horizon is zero, therefore the light ray will reach the observer before they cross the event horizon only if $T &lt; \tau$. Hence $T$ is bounded and the observer won't see the end of the universe.  I think a more rigorous approach would be to determine the equations of motion (in the Schwarzschild coordinates) for the falling observer and the light ray, and then find the condition for the light to reach the falling observer at some distance $\epsilon$ from the event horizon. Then take the limit as $\epsilon \rightarrow 0$. In principle this seems straightforward, but in practice the algebra rapidly defeated me. Even for a light ray the radial distance:time equation isn't closed form (Wolfram claims it needs the $W$ function) and for the falling observer the calculation is even harder. Is there a way to add a timer to a Beamer presentation? I have seen presentations in Power Point which contain a timer. Can this be done in Beamer using a simple command, or maybe a package? If not a timer, is it possible to at least get a clock on your slides? Being a fairly new user something I don't seem to be able to locate is information on whether small edits to the title are considered as trivial edits. I see the usual recommendation when suggesting an edit is:     Avoid trivial, tiny one-letter edits unless absolutely necessary.   I can see the logic in that for most cases, but for example I just read a question with a title containing "Andriod" which would be trivial in one way but also affect the ability of users to locate the question using both the site and external search engines. Would it be frowned upon to suggest an edit for those cases? Is adjusting p-values in a multiple regression for multiple comparisons a good idea? Lets assume you are a social science researcher/econometrician trying to find relevant predictors of demand for a service. You have 2 outcome/dependent variables describing the demand (using the service yes/no, and the number of occasions). You have 10 predictor/independent variables that could theoretically explain the demand (e.g., age, sex, income, price, race, etc). Running two separate  multiple regressions will yield 20 coefficients estimations and their p-values. With enough independent variables in your regressions you would sooner or later find at least one variable with a statistically significant correlation between the dependent and independent variables.   My question: is it a good idea to correct the p-values for multiple tests if I want to include all independent variables in the regression? Any references to prior work are much appreciated. Moving tfrom Shimano 9- to Shimano 10- speed I'm thinking of changing the 9-speed Tiagra rear mech on one of my (road) bikes to something, still Shimano, but 10-speed.  The obvious replacements I'll need are cassette, right-shifter and chain. But I reckon because of the narrower chain I'm also looking at a new chainset and rear derailleur. However I think the front derailleur and left-shifter should be safe (still keeping the front mech the same). Ditto the bb, regardless of whether I need a new chainset  Has anyone actually done this conversion and is able to confirm (or put me right)?  Thanks  Update  Decided in the end that going from 9- to 10- was too much to spend all in one go. But I used a service as an excuse to change the cassette (to a 9-speed ultegra) and the chain (dura ace) at quite minimal cost. Can upgrade other parts as and when, although I'm basically looking at Shim's 6500 range here so all quite dated now.