Page 1 of 1

how i chang my xampp localhost server name ?

PostPosted: 08. July 2015 07:30
by shahin alom
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:

Re: how i chang my xampp localhost server name ?

PostPosted: 08. July 2015 11:50
by glitzi85
Find the directive ServerName in the File C:\xampp\Apache\conf\httpd.conf and change the value from localhost to whatever you like.

Re: how i chang my xampp localhost server name ?

PostPosted: 08. July 2015 14:27
by Nobbie
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.

Re: how i chang my xampp localhost server name ?

PostPosted: 08. July 2015 21:25
by glitzi85
@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.

Re: how i chang my xampp localhost server name ?

PostPosted: 10. July 2015 06:50
by shahin alom
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:

Re: how i chang my xampp localhost server name ?

PostPosted: 10. July 2015 14:24
by Nobbie
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..