0

i have an application which is deployed on websphere application server with ibm http server.I want to change the domain name.I have figured out that changes will be required in httpd.conf file. in the servername tag.also plugin-cfg.xml needs to be changed.How should i modify these files.and how will the changes be reflected. And are there any other files/properties files where i have to chnage the domain name.

Thanks

yashbinani
  • 387
  • 2
  • 10
  • 24

1 Answers1

2

You don't want to edit plugin-cfg.xml manually (except in very rare cases). The hostnames in there come from the Aliases defined for the WebSphere Virtual Hosts.

By default, those usually have *:80, so changing the server domain name would require no changes at all. For instance:

<VirtualHostGroup Name="default_host">
  <VirtualHost Name="*:9080"/>
  <VirtualHost Name="*:80"/>
  <VirtualHost Name="*:9443"/>
  <VirtualHost Name="*:5060"/>
  <VirtualHost Name="*:5061"/>
  <VirtualHost Name="*:443"/>
</VirtualHostGroup>

If the WebSphere Virtual Host that your application is using does specify an Alias with a particular domain name, you just change the domain name there.

dbreaux
  • 4,982
  • 1
  • 25
  • 64
  • @dbrequx How would I add a new Uri to a URI group of the plugin-cfg.xml file (without editing it manually) either using web console or the scripting console? – Chandu Oct 14 '15 at 18:26
  • @Chandu Isn't that really a whole new question? But in general, most things in that file can be edited through more permanent means. Like the console (or scripting). Or in this case, Uris come from patterns in your application's web.xml – dbreaux Oct 15 '15 at 15:45
  • Thanks. I will elaborate my question and post it as such – Chandu Oct 15 '15 at 20:15
  • Posted my question @ http://stackoverflow.com/questions/33173151/websphere-how-to-add-a-uri-to-urigroup-of-plugin-cfg-xml – Chandu Oct 16 '15 at 14:38