WebServer

sarep is some kind of search and replace tool from the ports.

What you are doing here is replacing the line in httpd.conf such as

Code:
DocumentRoot "/usr/local/www/apache22/data"

with this:

Code:
DocumentRoot "/usr/local/www/data"

It will also replace other lines that reference /usr/local/www/apache22 to just /usr/local/www

If you follow the guide and change you installation from /usr/local/www/apache22 then you will need to change the DocumentRoot, although I don't think you should install a port to do it when it is pretty simple.
 
sarep "/usr/local/www/apache22" "/usr/local/www" httpd.conf

so all this does is... where if it says "/usr/local/www/apache22" in the documment httpd.conf change it to "/usr/local/www"??

ohh easy enough.. And i should do this correct? is good practice to change from /usr/local/www/apache22 to /usr/local/www
 
SuperMiguel said:
sarep "/usr/local/www/apache22" "/usr/local/www" httpd.conf

so all this does is... where if it says "/usr/local/www/apache22" in the documment httpd.conf change it to "/usr/local/www"??

Yes.


ohh easy enough.. And i should do this correct? is good practice to change from /usr/local/www/apache22 to /usr/local/www

Well as for good practice, I really can't speak on that. Apache 1.x used to install in /use/local/www and Apache 2.2 installed in /usr/local/www/Apache22 to help when upgrading from 1.x. Since I upgraded my websites from 1.x I just have kept everything in /usr/local/www/Apache22.
 
Back
Top