Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Creating subdomain using java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating subdomain using java" Watch "Creating subdomain using java" New topic

Creating subdomain using java

Manpreet Patil

Joined: Oct 18, 2009
Posts: 18
Hi guys,

I am creating a subdomain through virtual hosts on openSuse linux using java. Eveerything goes fine but the when i try to reload apache through java code it shows document root directory of some other subdomain but the url in the address bar is correctly shown. I am using the following code:-

Runtime .getRuntime.exec(sh;

where is my bash file that contains:-
#! /bin/bash
/etc/init.d/apache2 reload

But when i try to reload the apache through console it works fine.

Nitesh Kant

Joined: Feb 25, 2007
Posts: 1638

I believe you are pointing to the same problem as you do here. None of these questions belong to this forum.
CarefullyChooseOneForum while posting.

Moving this to Java In General as i dont think this is a problem particular to apache. At a casual glance it looks like you are not consuming the error stream where you may have some errors.

apigee, a better way to API!
I agree. Here's the link:
subject: Creating subdomain using java
It's not a secret anymore!