The "host" HTTP header is set by the client to indicate the virtual host that should be used to fulfil the request.
Questions tagged [http-host]
70 questions
0
votes
1 answer
httphostconnectexception connection refused
I know there are lots of questions about this matter but I just could not find an answer to this one in specific. I am trying to access
HttpClient client = new DefaultHttpClient();
URI website = new…

Akash
- 367
- 9
- 21
0
votes
2 answers
PHP website domainname
I've seen some posts like this which show that the current website domain is accessible from $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_NAME']. The HTTP_HOST is an HTTP header and thus the user is free to change it. There is no reason to believe…

Simon
- 5,464
- 6
- 49
- 85
0
votes
1 answer
Will my ALLOWED_HOSTS setting block googlebot?
If my ALLOWED_HOSTS is set to just .mywebsite.com, will that stop google from crawling my site? Doesn't the the bot have a host of googlebot? Sorry I'm kinda ignorant on this matter..

avoliva
- 3,181
- 5
- 23
- 37
0
votes
2 answers
Can I use HTTP_HOST to set site css, images when hosting multiple domains per DB?
This is a basic question.. I have been learning SQL php for just over a year. I am building a great database I would like to share with my customers on their own domain/server. So, they would actually log in to my domain to update info to their…

Cloverlone
- 3
- 4
0
votes
3 answers
What am I doing wrong while getting URL
I want to place links on my page.
I use
echo "

Sven van den Boogaart
- 11,833
- 21
- 86
- 169
0
votes
1 answer
Determine file paths in CSS file depending on CGI HTTP_HOST
I work in a small development team where we use version control but one of the real bug bears for us is that our development paths are different from our live web platforms paths.
So when we are developing projects on our own machine we are…

CPB07
- 679
- 3
- 13
- 23
0
votes
1 answer
not accessing wildcard subdomain folder
when I am trying to load the wildcard subdomain its properly pointing the index file which I mentioned in the root domain .htaccess file like below
RewriteCond %{HTTP_HOST} ^(^.).mydomain.com
RewriteRule (.) …
-1
votes
1 answer
Multiple domain / multisite file mapping using modrewrite
Hi I am looking for some help with properly using a rewrite rule for mod_rewrite with my application. I have multiple domains pointing to the same file structure on my server since I am using a custom php script to display the correct content per…

edgji
- 183
- 7
-1
votes
1 answer
Get only domain name
i want only domain name without sub domain and path URL.
Example :
URL loading in browser : https://www.example.com/something. I want only example.com
I tried echo $_SERVER['HTTP_HOST']; and echo $_SERVER['SERVER_NAME']; but the output is…

Stellan Coder
- 323
- 1
- 11
-3
votes
2 answers
How to get, in which page i posted my data in php?
How do I get, from which page/url the data in the $_POST variable come from :$_SERVER['HTTP_HOST'] ?

Praveen Muarli
- 3
- 2