Hi, These are the instructions I have about accessing nut online. By using the cgi use flag you have the files to use on the webserver.> > If you look in /usr/html after emerge you find the html files. > Copy this files to /var/www/localhost/htdocs/nut > (if you want it as www.my.org/nut ) > > > In /usr/share/nut you find the cgi files. Copy this files to > /var/www/localhost/cgi-bin/nut > > In that directory create the .htaccess file > > <Files upsset.cgi> > deny from all > allow from 127.0.0.1 > </Files> > > Now you need this files. > > -------------------------- > /etc/nut/hosts.conf > > MONITOR belkin@localhost "Local UPS" > > --------------------------- > /etc/nut/upsset.conf > > Read the content of this file and secure your cgi directory > the uncomment the line. > (If you have done the .htaccess in the cgi-bin it is secure) > > I_HAVE_SECURED_MY_CGI_DIRECTORY > ------------------------------------- > > You also need the 'upsstats-single.html and upsstats.html' > in the /etc/nut directory. This is template files for the > cgi. > > Now you can check status and info from the webb. >I remerged nut with a use flag of cgi. I have no cgi files in /usr/share/nut. /var/www/localhost/htdocs is not a directory but just a file called nut. I have no nut directory under cgi-bin. What am I missing? Thanks for the help Barbara Smith -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Hi Barb, fre 2007-05-11 klockan 10:21 -0500 skrev Barb Smith:> Hi, > > These are the instructions I have about accessing nut online. > > By using the cgi use flag you have the files to use on the webserver. > >8<--------------------------snip-------------------------------> I remerged nut with a use flag of cgi. I have no cgi files in > /usr/share/nut. /var/www/localhost/htdocs is not a directory but just a > file called nut. I have no nut directory under cgi-bin. What am I > missing? > > Thanks for the help > > Barbara Smith >A little of topic on this list. Think it is only me that run Gentoo of the developers. But the directory /var/www/localhost/htdocs is not part of nut, this belong to the apache server. So you have to create the nut directory under the htdocs and also under the cgi-bin. The problem is that you don't get the /usr/share/nut directory with the cgi files. Reemerge the package and check for any errors during emerge. Also check the nut-2.0.5.tar.gz that you made to include the new megatec driver that there are no missing files. If you have any installation questions mail it on the Gentoo forum (or me). And usage questions about nut should go on the Nut-upsuser list, as this list handles driver patches, code, new ups support, and anything related to the development of nut. For reference to other on this list. http://forums.gentoo.org/viewtopic-t-557492-highlight-.html Regards Kjell
Barb Smith wrote:> > Hi, > > These are the instructions I have about accessing nut online. > > By using the cgi use flag you have the files to use on the webserver. > > > > If you look in /usr/html after emerge you find the html files. > > Copy this files to /var/www/localhost/htdocs/nut > > (if you want it as www.my.org/nut ) > > > > > > In /usr/share/nut you find the cgi files. Copy this files to > > /var/www/localhost/cgi-bin/nut > > > > In that directory create the .htaccess file > > > > <Files upsset.cgi> > > deny from all > > allow from 127.0.0.1 > > </Files> > > > > Now you need this files. > > > > -------------------------- > > /etc/nut/hosts.conf > > > > MONITOR belkin@localhost "Local UPS" > > > > --------------------------- > > /etc/nut/upsset.conf > > > > Read the content of this file and secure your cgi directory > > the uncomment the line. > > (If you have done the .htaccess in the cgi-bin it is secure) > > > > I_HAVE_SECURED_MY_CGI_DIRECTORY > > ------------------------------------- > > > > You also need the 'upsstats-single.html and upsstats.html' > > in the /etc/nut directory. This is template files for the > > cgi. > > > > Now you can check status and info from the webb. > > > I remerged nut with a use flag of cgi. I have no cgi files in > /usr/share/nut.These files should be in EPREFIX/cgi-bin, where EPREFIX is the location specified with ./configure --prefix (be default /usr/local/ups, or see ./configure --help to see the default).> /var/www/localhost/htdocs is not a directory but just a > file called nut.This depends on how your webserver is configured. Replace this directory with whereever your webserver looks for HTML files.> I have no nut directory under cgi-bin.Then create one with the "mkdir" command.> What am I missing? > > Thanks for the help > > Barbara Smith > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > _______________________________________________ > Nut-upsdev mailing list > Nut-upsdev@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev >