XAMPP working together with IIS - iis

I have a NAS at home (Windows Server 2012) which I've been using the last few months for hosting my own website. Before that, I had the Windows Essentials role server installed with the remote web access on (wich requires from IIS) but I had to turn it down because my last processor couldn't handle it.
Now I've changed it, I want to set it all up in the cleanest way, but there's no way I can make it work.
As far as I'm concerned, It´s easier to change the Apache´s ports than IIS ones so I changed them to 8079 and 8443. My new ISP provider doesn´t offer static IP so I´m using dynu as a dynamic DNS service.
I set a virtualhost with the following values:
# Listen for virtual host requests on all IP addresses
NameVirtualHost *:8079
<VirtualHost *:8079>
DocumentRoot "C:\xampp183\htdocs\mywebsite"
ServerName mywebsite.com
ServerAlias www.mywebsite.com
</VirtualHost>
The firewall and my router are configured properly (I can reach my default gateway through "dnsname.dynu.com") but when I go to the domain.com control panel and I try to set "dnsname.dynu.com" as a private server throws an error. I redirected the 80 port to 8079 at the dynu's control panel but keeps throwing the error.
I guess the next step is configuring a CNAME pointing to my serverAlias but I can't make it work and I'm not sure if this is the best way to do it.
I hope you can help me.
Thanks!

Related

How to config IIS can access by IP website and hostname website

I have default website with lots of virtual directory all clients access to websites by using IP_ADDRESS/virtual_directory
next I have demo site use DNS like www.demo.company.com I would like to create web site that access by domain name and want to keep default website work so I create
new website binding with
new_website : www.demo.company.com on *:80
default_website : on *:80
when I access www.demo.company.com it always go to default_website not new_website. How can I access www.demo.company.com to new_website and keep default_website runnign with IP_ADDRESS thank you
after looking for solution, IIS support hosting this situation by default
the problem is I config wrong host name
I have
sub1.domain1.com bind to 203.xx.xx.xxx but I bind it as
new_website = www.sub1.domain.com on *:80
and I still have
default_website = *:80
so when I enter website by sub1.domain.com IIS looking for sub1.domain.com and not found, then it match *:80 and go to default_website

Redirect a request to a colud server from a godady server with .htaccess

Hi everyone need your support with the following problem. Please do apologies if I confuse you in anyways with my explanation.
I have a add-on domain (example.com) pointed to a Godaddy Linux server, domain is also in the Godaddy same account.
The web application for "example.com" is a Laravel 5.6 based one, and the web app has 'Get' type search form which needs to be forwarded to another Windows IIS server's port with all the query strings where another web app is hosted. the action of the from will be similar to below.
Request => http://sub1.example.com/route/method?var=val1&var2=val2&var3=val3
From this point on-wards the application has to continue work from the IIS server with the subdomain, which mean I am not expecting any replies from this IIS server to the Linux server.
Its been advised to use the subdomain to mask the forwarding to the IIS server, so I did like above with sub1 sub-domain. This subdomain has to be forwarded to a server's port as I mentioned above, something similar to below.
http://sub1.example.com => http://xxx.xxx.xxx.xx:9596
I did tried with the Godaddy's default subdomain forwarding with masking, but the query strings are not being forwarded and shows "Destination Unknown" error.
In a online forum its been advised not to go with Godaddy's forwarding instead go with .htaccess to have more control.
Therefore any possible solutions or your support with the redirection with .htaccess from web application to the external web server's specific port along with the query strings would be a life saver.
Thank you in advance.
As per the GoDaddy support, the domain forwarding to a IP's port is not possible with the Shared hosting.
The support suggested to go-ahead with the VPS and configure.
Please do comment, if this is wrong statement!

www.example.com is not openning while example.com is working fine how to resolve it?

when i am trying to access my domain with www it shows an error like "This site can’t be reached
www.sustainabletourism.co.in’s server IP address could not be found.
Search Google for sustainable tourism co
ERR_NAME_NOT_RESOLVED"
and working with out wwww.
all dns records are set correctly
plz help me
thanx
As you mentioned DNS is configured corrent, than its is most probably due to wrong setup of virtual host for web server. Depending of the web server in use(eg. Apache or nginx or some other) you can correct this.
In the server alias, you need to add both www and without www of your domain.

CNAME to a wildcard subdomain

Just trying to create an web application, clients can create their own instance of the app, so I created a wildcard subdomain in CPanel, checked VirtualHosts and the A record in the DNS, all fine.
Now when I go to "client1app.domain.tld" it works, takes me to the clients app, but when that client creates a cname "app.clientdomain.tld" to "client1app.domain.tld", I get redirected to cPanels "Default Web Site Page".
I double-checked everything.
App DNS:
*.domain.tld. 3600 IN A x.x.x.x
Customer DNS
app.clientdomain.tld. 3600 IN CNAME client1app.domain.tld
App VirtualHost:
ServerName _wildcard_.domain.tld
ServerAlias *.domain.tld
Any help is greatly appreciated.
Note: I do have root, this is a VPS.
Simple things first, have you added *.domain.tld as a subdomain in cPanel using the user interface and not the command line?
I have tried to replicate this problem using one of my WHM servers and could not.
I recommend first updating cPanel/WHM to the latest version as some support articles covering wildcard subdomains point to some old versions of cPanel have bugs with wildcard subs which are now fixed.
I would also rebuild the httpd.conf if you have at any point manually edited it. Also make sure that the subdomain is not the same as the hostname as this causes some internal binding errors.
I set my environment up using only the cPanel sudomain button and not using the DNS editors in WHM or cPanel

Is it possible that someone can serve my website files by pointing to my ip address under his domain name?

i have website built in drupal. http://www.bhubaneswarlive.com hosted on linode.
Now somedays back i discovered that a Chinese website http://today.yangchenyun.com is serving my website too.
so i want to know whether he has copied my entire website files and database or he is just serving files and data by pointing to my linode's ip address (as said by linode support guy).
i.e Is it possible that someone can serve my website files by pointing to my ip address under his domain name?
When i update my website with new content both the domains show the new content.
Also one thing i have noticed that when i visit "restaurants link" on the right sidebar, which are just drupal taxonomy terms, perfectly shows list of data under its own url instead of redirecting to my website.I am asking this to know whether its related to drupal or my whole system has been copied.
can anyone suggest how to counter/solve this problem?
my server stack is
Linux- Debian
Nginx
Mariadb
php5-fpm
Drupal-7
fail2ban server
and some other softwares
on a Linode VPS
Both DNS use the same IP record. So yes, they simply recorded another domain name.
You have a very simple setting that you can use in Drupal, which is calle the base_url, this settings should alays be set in production servers.
Add this to you settings.php file:
$conf['base_url']="www.bhubaneswarlive.com"
You can also set it on the Drupal back Office interfaces, somewhere, but the right place is the settings file. If you have a multisite installation you can set that in the related settings files.
With this setting all pages links will contain reference to your website.
Then you can play with your Apache configuration and set a special named base virtualhost
<VirtualHost *:80>
ServerName today.yangchenyun.com
DocumentRoot /var/www/fush
</VirtualHost>
And then set any content you think appropriate for this domain name in /var/www/fush.

Resources