multiple-domain | multiple domains in a single WordPress | Content Management System library
kandi X-RAY | multiple-domain Summary
kandi X-RAY | multiple-domain Summary
Multiple Domain allows you having more than one domain in a single WordPress installation. This plugin doesn't support more than one theme or advanced customizations for each domain. It's only intended to enable constant navigation under many domains. For a more complex setup, there is WordPress Multisite (MU). When there is more than one domain set in your host, all links and resources will point to the default domain. This is the default WordPress behavior. With Multiple Domain installed and properly configured, it'll update all link on the fly. This way, the user navigation will be end-to-end under the same domain. You can also set an optional base URL. If you want only a set of URL's available under a given domain, you can use this restriction. Additionally, a language can be set for each domain. The language will be used to add tags with hreflang attribute to document head. This is for SEO purposes. Check the plugin page at WordPress.org:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Returns the settings fields for a set of domains .
- Redirect the user to the home page .
- Adds href lang tags .
- Add settings section .
- Initialize attributes .
- Add canonical tag .
- Sanitize domains settings .
- Load the first active plugins .
- Get the language field .
- Load view file .
multiple-domain Key Features
multiple-domain Examples and Code Snippets
Community Discussions
Trending Discussions on multiple-domain
QUESTION
I'm building a multi-tenant rails application, similar to Shopify. Whenever a customer registers an Account
, they will have a subdomain created at customer.myapp.com
. This subdomain returns a view with data related to their account (including a /admin area).
Now in some cases, customers would like to use their own custom domain, instead of the subdomain created for them. How do I need to adjust my rails routes and controllers to return a view with data related to the customers account, based on not just the subdomain but on either the custom domain OR the subdomain?
This is how I've set up my config/routes.rb
for handling subdomains:
ANSWER
Answered 2021-Jun-01 at 11:35Okay, so this is what I came up with in the meantime.
First of all I left my config/routes.rb
as described above. Everything seemed to be working as intended there.
Then I adjusted app/constraints/subdomain_required.rb
to not only check for the subdomain but also the domain part of the request:
QUESTION
Can i create different subdomains from Google Domains, register them on Firebase Hosting and serve different content by from each one subdomains?
If the answer is yes, how? I followed this guide: https://medium.com/@fransandi/use-firebase-multisite-hosting-to-associate-multiple-domains-subdomains-to-your-project-ee099109bfe9 and although its title says "multiple domains/subdomains", it didn't help me for deployed content on my subdomains. Always got this error: "Error: HTTP Error: 404, Requested entity was not found" when run "firebase deploy --only hosting:my-target". Deploy in my main domain easy, but for subdomains... I can't.
...ANSWER
Answered 2020-Nov-30 at 15:39Create a separate folder for each site/app, and then deploy hosting for each site/app. When you click the "add custom domain" button, type in the subdomain that you want to use. Example
mysubdomain.mydomain.com
When you add the 2 A records to your domain registrar make the host name your subdomain instead of @ or www.
QUESTION
Is it somehow possible to add different rewrite targets per domain in an ingress?
I have an ingress that looks like this:
...ANSWER
Answered 2020-Jan-27 at 19:13This is one of the frustrating things about the Ingress abstraction. It was built be a minimalist system so that it could be easily implemented by multiple controllers (which worked), but that means a lot of features are stuck being implemented by annotations which usually don’t match up against the abstraction very well since those are a generic key/value pair system.
QUESTION
I'm building a web app (example: www.mywebapp.example
) that allows users to point their domain - www.xyz.example
- to www.mywebapp.example
. When users go to www.xyz.example
, their content will be served from www.mywebapp.example
instead. Users will be told how to update their @
and www
A records
in their domain providers DNS settings to connect www.xyz.example
to www.mywebapp.example
.
I can manually create new SSL certificates using ./certbot-auto -d
for each domain. I have also set a cron job to test for renewal.
However, I want to automate this process by running a PHP script, triggered from a JavaScript function, each time a user connects their domain to www.mywebapp.example
. My questions are:
Should I execute the
./certbot-auto
command from PHP using theexec()/shell_exec()
command? Should I write a separate bash script and run the bash script instead?Should I use an ACME PHP library recommended by LetsEncrypt - https://letsencrypt.org/docs/client-options/
I manually created a new SSL certificate for a domain
www.xyz2.example
, which successfully pointed towww.mywebapp.example
. However, this broke SSL support for all existing domains -*.mywebapp.example, mywebapp.example, www.xyz.example
. Do I need to create virtual hosts for each domain pointing towww.mywebapp.example
?- Do I need to edit
/etc/httpd/conf.d/ssl.conf
to add the new virtual hosts? Can multiple domains use the sameDocumentRoot
path?
I've read through all the following links, but am still pretty confused:
- https://httpd.apache.org/docs/2.4/vhosts/name-based.html
- https://serverfault.com/questions/7308/dynamic-virtual-hosts-in-apache
- https://serverfault.com/questions/126554/multiple-domains-with-ssl-on-same-ip
- certbot-auto / letsencrypt setting up one key for multiple domains pointing to the same server
Any help is greatly appreciated. If more information is required, please let me know.
My server setup is:
- LAMP
- AWS EC2
ANSWER
Answered 2019-Mar-28 at 17:42You have many questions in one.
Should I execute the ./certbot-auto command from PHP using the exec()/shell_exec() command? Should I write a separate bash script and run the bash script instead?
In a generic case: no.
PHP is executed once a webpage has been reached, hence it lives inside the current HTTP session, and the browser at the other end will wait for some kind of response back, in some kind of limited time (and users get angry if they do not see something appearing "fast").
If you exec things you have two options:
- you wait for completion of external program: problem, this can be after an "undefinite" time, so if this is not taken into account, user will never see anything back in their browser
- you start it in the background, and you do not wait for its completion: problem, you do not need if it succeeds or not, so even if you are then able to reply "something" to the browser, how will you handle failures?
The generic solution to cases like this is:
- The action triggered by the HTTP visit just records the request, like in a DB or something
- Separately a process polls the DB for tasks to do and executes them; this is completely separate from any webserver; when job has completed (success or failure), the DB will be updated in the same way
- The process at 1) can regularly poll the DB to see the status (pending or completed or failed) and show user a message, like during its visit, with some kind of auto-refresh, and/or provide a specific separate page where the user would be able to track status of its operation
Should I use an ACME PHP library recommended by LetsEncrypt - https://letsencrypt.org/docs/client-options/
You can use any library in any language that properly implements the ACME protocol.
Let's Encrypt only recommends one software: certbot
. All the rest listed in that page are examples of client libraries/programs that are expected to work.
Do I need to create virtual hosts for each domain pointing to www.mywebapp.example?
Yes, specially if they are using each of them a specific certificate, otherwise the webserver will not be able to identify the proper certificate to return at the beginning of the TLS handshake based on which hostname the browser gave (inside the SNI extension used at beginning of TLS handshake)
Or you can use some Apache features of mass virtual hosting, such as https://httpd.apache.org/docs/2.4/mod/mod_vhost_alias.html As is however this may probably mean a single certificate with all names added to it, which can technically work until some amount of names, but can create non technical problems (like seeing all the names, etc.)
Of course other software, like Nging/HAProxy can provide more advanced features, where you do not need to configure things virtual host per virtual host, even with different certificates, you just put things in place with specific naming and the webserver will match things as needed.
Do I need to edit /etc/httpd/conf.d/ssl.conf to add the new virtual hosts?
Yes, or any other file as long as you use Include
or similar.
If you manage many different and separate websites, it may be simpler to have one configuration file per website, including its certificate paths and so on, many Linux distributions install Apache in such a way that you have /etc/httpd/sites-enabled/
for that feature. If not, you can do the same yourself.
Can multiple domains use the same DocumentRoot path?
Of course yes.
PS: please stop saying SSL, the protocol is named TLS, invented 20 years ago. SSL is long gone, current recommandations are to run TLS 1.2 except if good reasons to also allow 1.1 and 1.0 which have vulnerabilities. There are no "SSL certificate" either for this reason and because they are a misnommer. TLS can work without certificates and these certificates can be used outside of TLS, like in S/MIME. They are X.509 certificates.
QUESTION
Possible duplicate of this but answer is not accepted.
I have 2 scenarios
- We are building a CRM and we will be having multiple clients using same product. Lets take a example,
subdomain1.maindomain1.com
andanysubmain.anothermaindomain.com
should be pointed to same webapp folder. And depending on domain, we will select database dynamically but codebase will remain same. Point to note here : Whole codebase remains same. - We are building series of website for a client where part of the codebase will remain same for all but depending on subdomain we will load the default servlet file. Lets take example,
manage.domain.com
crm.domain.com
equote.domain.com
should be pointing to same webapp folder. And depending on domain we will load default servlet file. Point to note here : Part of codebase will remain same for all domains. Ex. core architect files.
What solutions other have suggested
- Deploy copy of same war file 2 time, Softlink, Create 2 contexts that point to the same file, Use alias. Last one can be good option but no idea how we can use this for different subdomains / domains.
- This can be one of the solution but not sure whether it will work on same port or different port
- There are many articles over internet which shows how we can deploy multiple webapps on multiple domain on single tomcat server but not the way i need.
Note: I can create 2 AWS EC2 instances for above 2 scenarios. It means that I am not expecting one solution to above 2 problems.
...ANSWER
Answered 2019-Jan-25 at 13:58In Apache Tomcat you can configure multiple virtual hosts that each deploy the same .war file (or document base) wile having different context configuration parameters like JDBC connection, ressources, esternal JAR files and others.
To stick with your scenario (1), in server.xml
configure both domains' host elements:
QUESTION
Abstract Context
I have a static stateful class (constraint: that I cannot change) that would like to cover 100%. It is a static class with a static state field. I'd like to test different inputs to a static method in the scenario where state is not already "set". This object does not have a publicly accessible mechanism for altering the piece of state of interest to the test.
Yes, I recognize this is a very good example of static-ness making testing painful.
My question here is to see how clever I can be without refactoring the unit under test.
I have not been able to find a framework way to accomplish this; I am aware that I could spin up a custom app domain for each test to get additional "copies" of my static object, but would like to avoid the heavy overhead (especially if I would be duplicating something the framework can accomplish).
Concrete Example
Consider the following class
...ANSWER
Answered 2017-Aug-15 at 19:38NUnit provides no way to do this. When running using the console runner (nunit3-console.exe) all the tests in a particular assembly run in the same AppDomain. The MultipleDomainTestRunner
you found is used when NUnit wants to run each assembly in its own AppDomain within the same process and so has no bearing on what you want to do.
Given that you can't change the class you are testing, running each test method within it's own AppDomain seems like a good solution. You would have to provide the infrastructure for creating the AppDomain yourself and you would need to make sure that you were not referencing the class itself within the original AppDomain. This is non-trivial but can generally be accomplished.
An alternative would be to use reflection to modify the static state field, assuming you are running tests with sufficient permission to do that. You would have to make sure that you didn't enable any parallelism in order to avoid multiple tests that change the shared state running at the same time.
QUESTION
I'm trying to get visibility of two IBM MobileFirst apps trough two different domains, with two different IHS configurations (independent HTTP Server and Plugin configurations) using the same secure port (443). I mean, I have domain1.com and domain2.com, and I need to use the port 443 to communicate with the public users.
My app server is an IBM Liberty Profile. I found a question related (multiple domains at the same secure port) but is deployed on an IIS configuration.
The error that I can see at the log is:
192.168.252.123 - - [18/Apr/2017:04:29:36 -0400] "\x16\x03" 501 292
Googleing I found something related to this error on an Apache configuration and at the end of the article says:
Probably you have a section with a specific VirtualHost IP address conflicting with the default VirtualHost. A section something like this "VirtualHost 192.168.0.1:443" cannot be used with the default section like this "VirtualHost default:443".
When I take a look in my httpd.conf file I can't find another mention of a virtualhost or the port that I use.
Is this configuration possible or is absolutely neccesary to use different secure ports for both apps?
...ANSWER
Answered 2017-Apr-18 at 10:35It is required to have two ports for two separate instances of an HTTP server, but it's generally not required to have two instances of an HTTP server simply to host two domain names.
Any release of IBM HTTP Server (IHS) can serve two certificates on two domains in one instance if the domains use a different IP address.
If they share an IP address, IHS prior to 9.0 requires a single certificate to be valid for both domains (wildcard, SubjectAltName).
IHS 9.0 supports SNI and 2 certs can be used on 2 domains with just a single IP address. The 9.0 manual has many examples. You'd be using 2 *:443 Virtual Hosts.
QUESTION
What's the correct way to set domains/ranges of data/object properties in OWL?
If I have two classes A
, B
and a data property hasName
:
ANSWER
Answered 2017-Mar-04 at 15:41First and most important point: Domain and range for a property hasName
in OWL semantics are not restrictions on hasName
! Instead, those axioms are used to infer types of individuals that are related via the property hasName
.
Regarding your example, it declares multiple domains for the property hasName
, which means the intersection of those classes, i.e. A and B
.
This is indeed the most common way.
Option 3I don't get what you're doing here. But in OWL the Open World Assumption (OWA) holds, which means unknown information is not considered to be false. It's just unknown. Thus, if you have an individual a
that is only related to an individual x
via property hasName
a standard OWL reasoner cannot (and must not) conclude that a
belongs to class A
.
Note, the semantic equivalent subClassOf axiom for a domain axiom in OWL is (in pseudo Manchester Syntax)
hasName Domain: A
(hasName some owl:Thing) SubClassOf: A
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install multiple-domain
Upload the plugin files to the /wp-content/plugins/multiple-domain directory, or install the plugin through the WordPress plugins screen directly.
Activate the plugin through the 'Plugins' screen in WordPress.
Use the Settings -> General screen to configure your additional domains.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page