Questions tagged [server-name]

91 questions
0
votes
2 answers

apache2 - ServerName in virtual host isn't working

That is my first time configuring the virtual host for local work and tests in my computer. I'm trying to access the blog.dev that I configurate on sites-available/default, but it isn't working. Here's my sites-available/default:
0
votes
1 answer

Local environment, User Level Root setup

I'm setting up this OSX Mavericks following this guide but I cannot get http://localhost/~giulio to work ('giulio' is this mac username). Looks like it doesn't find the /users/giulio.conf This is what's inside the…
a.barbieri
  • 2,398
  • 3
  • 30
  • 58
0
votes
2 answers

Nginx $server_name in if statement

It seems like this is not working: server_name blabla.bla; location ~* (wp-comments-posts|wp-login)\.php$ { if ($http_referer !~ ^(http://$servername) ) { return 405; } } While server_name…
Greg
  • 3
  • 1
  • 2
0
votes
1 answer

Php Session don't see Servername and ServerAlias

I am working on a Intranet using Wordpress and setup in Apache (httpd-vhosts.conf) in order to access to the Intranet as intranet or intranet.domain.lcl like this : Listen 80 DocumentRoot "C:/www/intranet" …
hathija
  • 85
  • 1
  • 9
0
votes
1 answer

How to set the same document root for all server names on Apache

I need a way to make all server names point to one document root without the need to manually type them all, maybe something like this: DocumentRoot /www/example1 ServerName * Will that work?
Amire
  • 1
0
votes
1 answer

Why does using the wildcard signifier for a second "server_name" break my nginx config

This config works correctly as expected: server { listen 80; server_name www.domain1.com domain1.com; access_log /srv/www/domain1.com/logs/access.log; location / { root …
some1
  • 1,547
  • 8
  • 26
  • 45
0
votes
1 answer

SQL Server 2008 Express server information

I installed a company specific program which can connect to a SQL Server. I installed SQL Server 2008 Express with mixed authentication. I called the instance SQLExpress. What I want to do is to create a new database via the program. (see image). In…
Joren Willems
  • 167
  • 1
  • 6
  • 12
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

Wrong hostname in squash TM on external server

I have a problem with reporting bug in squash TM. This is problem connected with my server name on which squash is installed. I have it on external server. In one place in application I got wrong URL like…
caro2
  • 155
  • 1
  • 4
  • 13
0
votes
1 answer

what should i write in server name in sql server

I've installed sql server 2008 r2 But the "server name" field in sqlserver is empty and i can't login to this What should i write in server name in sql server ? My account name in windows 7 is alaveh and my PC name is alaveh-pc I've tested…
0
votes
1 answer

Subdomain configuration using apache2 and virtual hosts

I'm setting up a webpage in a server that runs ubuntu 12.04. I have deactivated the default sites ( a2dissite default default-ssl ) and I have created a new one, the one that I need up and working which would be a subdomain. Imagine I have…
ThisIsErico
  • 1,885
  • 2
  • 19
  • 24
0
votes
2 answers

Nginx server_name isn't applying to rewrite subdirectories.

I'm trying to use nginx to redirect my main page (www.domain.com) to a subdirectory (www.domain.com/store). I have the redirect working, but whenever I use the domain name it will redirect me to the ip address (www.IP.com/store). This is my server…
Lethjakman
  • 997
  • 9
  • 15
0
votes
1 answer

What servername for NetUserGetInfo?

I want to have a function that can take in any username on the local machine and tell me whether that user is an administator or not. I have tried using WindowsIdentity with no success. Now I am trying to use NetUserGetInfo. The problem is that it…
Sterling
  • 3,835
  • 14
  • 48
  • 73
-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
-1
votes
1 answer

How map a servername apache in docker container on host client?

I have a docker container with apache and configured my .conf file with a virtual hosts, calling from the client test.dev the virtual host docker is not mapped. If I call localhost it works correctly. Thanks!! Servername…