Can you identify the hostname of machine where a webpage is hosted? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 8 years ago. Improve this question At my company, there is an internal cgi script that I regularly use. Is there any way I can identify the hostname of … Read more

url forwarding in nginx

First time using nginx. I want to forward any incoming request which looks like this: https://www.example.com/elasticsearch to http://localhost:9200 with nginx. I wrote following in my nginx config in the http tag. server { listen 3333; server_name www.example.com/elasticsearch; return 301 $scheme://localhost:9200; location / { allow ‘elasticsearch’; deny all; } } Unfortunately when I use nginx -t … Read more

An optimal way of nginx rewrite rule building for pretty URL [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 4 years ago. Improve this question The webpage is accessed in the following way: `example.com/` or `example.com/?site=website` In this example, I’m accessing the websites located on example.com domain. Could … Read more

How can I access a URL through it’s IP address? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 6 years ago. Improve this question http://example.com has the IP address 93.184.216.34. From what I’ve read about IP addreses and ports, this leads me to believe that appending the … Read more

Which DNS record type points at the directory where the website resides?

A server can host multiple websites. For example let the server’S IP be 111.222.333.444 Then one website could reside at 11.222.333.444/example1 and another at 11.222.333.444/example2 directory If you dig the a DNS record of those two, you will always get the servers ip. E.g root@ubuntu:~$ dig +short -t a example1.com 111.222.333.444 Hence, I am wondering. … Read more

What’s behind a URL? [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago. What are the parts that make up a … Read more

cpanel cron job not working [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Server Fault. Closed 6 years ago. Improve this question I have created a cron job in cpanel. The result is this: * * * * * /usr/local/bin/wget http://example.com/facturi-restante/cron The problem is that … Read more

remove everything but domain name from url

I am looking if the is an easy way to keep the webpage always with the URL like: http://example.com at the time there are request like http://example.com?target=dirigido http://example.com/a-quien-va-dirigido/ http://www.example.com/a-quien-va-dirigido/ … behind. Anybody could help? EDIT The following rule RewriteRule ^(.*)$ http://example.com/$1 [L,R=permanent] seems to lose the ?target=dirigido request. EDIT2 The case is the site is … Read more

How to hide query string in url?

The below is the .htaccess code which is causing the rewrite in URL, RewriteRule ^24-(.+)~(.+)\.html$ gallery_catagory.php?gallnm=$1&GalleryID=$2&%{QUERY_STRING} [nc] but still I can see the query string appended after .html? for each page. How should I hide/rewrite URL to make it search engine friendly? Answer mod_rewrite is the wrong place to make URL’s “friendly”. This has to … Read more

Apache not finding file from URL request

I’m trying to access a file from my localhost via http://localhost/profile-pics/default.jpg however apache keeps saying that the url doesn’t exists 404. How can I configure apache to find my file? My directory is as follows … var/www/ profile-pics/ html/ cgi-bin/ I’m using Fedora Answer Because the DocumentRoot is /var/www/html, you should move your profile_pics folder … Read more