Slagathor Posted February 6, 2003 Report Share Posted February 6, 2003 I got it installed and working great, but I was wondering if I could change the default directory to something else??????? Or can I add the default Apache directory to Samba and be able to browse to it from the network?????? Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted February 6, 2003 Report Share Posted February 6, 2003 You can change the default directory to whatever you want. You will need to edit in httpd.conf and then restart the server. Once this is done, it will point to the new directory. Quote Link to comment Share on other sites More sharing options...
Slagathor Posted February 7, 2003 Author Report Share Posted February 7, 2003 Ok, I changed it, restarted the server, then I didnt have permission for /. I then restarted the computer, I figured I did something wrong, same thing then too. I changed it from /var/www/html to /home/ziggy/webs. Was that correct, or might there be more I have to change?????? Quote Link to comment Share on other sites More sharing options...
Slagathor Posted February 7, 2003 Author Report Share Posted February 7, 2003 I got it, thanks for the help....... Quote Link to comment Share on other sites More sharing options...
Guest ginkoomo Posted February 7, 2003 Report Share Posted February 7, 2003 Hey what did you do??? Ive been trying to figure this out for 3 days now Peace Ginko Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted February 7, 2003 Report Share Posted February 7, 2003 My first guess would be that the new folder needs to be part of the same group as the default directory was -- probably apache or something like that. But, that is just a guess. :) Quote Link to comment Share on other sites More sharing options...
Guest ginkoomo Posted February 7, 2003 Report Share Posted February 7, 2003 default is /var/www/html . I'm trying to set up a virtual server with 2 different directories to service the 2 sites and I cant get the server to recoginize the new locations of the document root. If I build the directory in the /var/www/html site I get the same error as if I built it anywhere in the file system. This is very weird becasue after 3 days of reading documentation and trying everything I can think off I'm not any closer. I'm ssure other peeps are having this problem, just wondering what I'm doing wrong?? I also tried just moving the document root to get that working with no virtual host, no luck there either. BTW I'm a newbux so I'm getting through this the best I can lol Peace Ginko Quote Link to comment Share on other sites More sharing options...
fuzzylizard Posted February 7, 2003 Report Share Posted February 7, 2003 Hmm, I could tell you exactly how to do this on windows and apache, but not on Linux. However, the theory is that same. For every directory/site that you want to set up in Apache, you need a corresponding IP address to give. Localhost will only work for the default site. So, you need to give your network card - eth0 - a few more IP address. Then you create the virtual directories in apache and assign each one to a different IP address. In order to access the new sites you open a browser and type in the appropriate IP. That is that theory at least. I have done this many times in windows, but never in Linux. Hopefully someone else will be able to fill in some of the details, or show another way of doing it. Quote Link to comment Share on other sites More sharing options...
Slagathor Posted February 7, 2003 Author Report Share Posted February 7, 2003 I didnt do it with Apache, I changed the directory and couldn't connect. So I add'd the dir to Samba, and changed permissions so I could read write to the default Apache dir. from my XPee machine..... My goal was, to be able to access the dir. and make changes from my XPee machine.......... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.