how i chang my xampp localhost server name ?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

how i chang my xampp localhost server name ?

Postby shahin alom » 08. July 2015 07:30

i am new user in xampp localhost server,i dont know how i chang my xampp localhost server name ? anyone hhlp me. i use xampp new vertion, ( xampp win-32-5.6.8-0-VC11 ) help me with image and stap by stap. :roll:
shahin alom
 
Posts: 2
Joined: 08. July 2015 06:46
Operating System: windows

Re: how i chang my xampp localhost server name ?

Postby glitzi85 » 08. July 2015 11:50

Find the directive ServerName in the File C:\xampp\Apache\conf\httpd.conf and change the value from localhost to whatever you like.
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: how i chang my xampp localhost server name ?

Postby Nobbie » 08. July 2015 14:27

Only changing the Servername in Apache does not have any effect on the usage of "localhost" (this will still lead to Xampp), it also does not allow to reach Xampp with another name , i think, you want to do more than only changing that name.

If you simply change the Servername in httpd.conf and enter that name in your browser, you will receive an error message "unknown server" or similar.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: how i chang my xampp localhost server name ?

Postby glitzi85 » 08. July 2015 21:25

@Nobbie: Thanks for the hint, completely forgot that....

@shahin alom: As Nobbie already stated you also need to resolve the servername to your IP. Are we talking about an development machine only you are working on or a development machine on an internal network? If we are talking about an public server, there will be no further help.
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: how i chang my xampp localhost server name ?

Postby shahin alom » 10. July 2015 06:50

glitzi85 wrote:Find the directive ServerName in the File C:\xampp\Apache\conf\httpd.conf and change the value from localhost to whatever you like.

my bro glitzi85,i am a new user plese,how chang the file C:\xampp\Apache\conf\httpd.conf and change the value from localhost.
plese discribe stap by stap and add pic.
:roll:
shahin alom
 
Posts: 2
Joined: 08. July 2015 06:46
Operating System: windows

Re: how i chang my xampp localhost server name ?

Postby Nobbie » 10. July 2015 14:24

shahin alom wrote:how chang the file C:\xampp\Apache\conf\httpd.conf and change the value from localhost.


Open the file httpd.conf with Notepad and search for "ServerName" and change "localhost" in that line in whatever you want. I dont think, that someone will write a pictured tutorial here for you..
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests