NethServer Version: NethServer release 7.6.1810 (final) Module: Web server Configuration tools for Apache web server
Base system
nethserver-httpd-virtualhosts
(*) installed
php-mbstring
php-pecl-memcached
php-ldap
php-imap
php-mcrypt
php-mysql
php-pecl-redis
php-pecl-apcu
php-gd
php-smbclient
As I said before, I’m in the migration process of an old SBS2000 server, the process is slow with some rough edges (from our side), and now I face another. This old SBS hosts an IIS local “site” for an ERP, the users using IE connect to this site and download de apps controls to work with it; I manage to create a program to “wrapper” the client controls (ActiveX), but it stills need the “site” to hosts some report files and pages (manuals).
So I wonder if I can hosts the same site using nethserver, in Software center I found the “Web server” and I got installed the package as above.
But I wonder if there is something that I need to read to mimic the same behavior of IIS on nethserver to host that site for our local use.
When I go the the local IP of nethserver: http://192.168.16.3/ I got a page banner from nethserver
but if I go to domain IP http://192.168.16.4/ It doesn’t show anything.
I got this shared folder when I put the html pages and files to use in the ERP, I don’t see the tab for use with the web server:
If you need to publish a site you don’t have to create a Shared Folder and share it on the web (it isn’t NS6). You have to create a Virtual Host into “Virtual Hosts” page, access it from SFTP and upload your html files into /var/lib/nethserver/vhost/vhostname
Thinking twice, I believe that I’ll need to divide this:
The virtual host sited needed for the applications.
Create a shared folder for the reports module, that allows us read/write access.
So, I’ll try to accomplish the first point, I don’t know what more to read, I create the vhost, put an index.html file, browse to the site but nothing is showed.
You retrieve a blank page or error page?
Try to put an index.html and write into it “hello world”.
Check also that you can ping erp.avion.lan from the computer. But “erp.avion.lan” is the FQDN of your server? If yes you need to use /var/www/html folder: if I don’t make a mistake you can’t create a Vhost for your FQDN.
BUT, I think that it needs to works as: erp.avion.lan rigth?
If I wrote the IP it works too
But now I wonder if I can put another virtual host and works too , this to create a site for other uses as development for somethings that I want to learn. *** trying now.
Almost… done.
I was thinking that the domain controller (ip 192.168.16.4) was the resolver for this sites, but not, the resolver is the nethserver (192.168.16.3), I add the IP on the TCP4 DNS on windows, now I can access the sites by their names.