Доменная запись для того, чтобы иметь доменную точку к подпапке

Можно завершить работу pop-before-smtp и голубятни. pop-before-smtp позволяет людям авторизовывать свое соединение SMTP путем сбора почты сначала. Голубятня является pop3/imap сервером.

service dovecot stop
service pop-before-smtp stop

Если Вы хотите постоянно отключить эти сервисы (персистентный через перезагрузки)

chkconfig dovecot off
chkconfig pop-before-smtp off
-1
задан 22 August 2011 в 20:57
2 ответа

Я предполагаю, что у вас нет собственный веб-сервер.

Если вы хотите, чтобы www.yourdomain.tld указывал на example.edu/~username/subfolder
1. Вы должны настроить запись CNAME, которая указывает с www.youdomain.tld на example.tld
2. Веб-мастер example.tld должен будет создать виртуальный хост для www.yourdomain.tld

Если вы хотите, чтобы yourdomain.tld указывал на example.tld / ~ username / subfolder
1. Вы должны настроить запись A, которая указывает на IP-адрес example.edu
2. Веб-мастер example.tld должен будет создать виртуальный хост для yourdomain.tld

. Если вы хотите, чтобы example.tld указывал на example.tld / ~ имя пользователя / подпапку ,
вам придется поговорить с веб-мастером example.tld, хотя я сомневаюсь, что они выполнят этот запрос.

1
ответ дан 5 December 2019 в 20:55

First, I'm assuming you're referring to "http" requests... HTTP is a VERY small piece in the grand scheme of things. Similar domain & path layouts can be used with a variety of services... let me know if I assumed incorrectly.

From what it sounds like, you need to setup a redirect to that URL. i.e. http://X redirects to http://X/~Y/Z/. If you wanted http://X to redirect to http://Y/~username/Z the same rule applies. Different web servers have different ways of accomplishing this. The simplest of which is to provide a default 'index.html' which sets certain header values to redirect the user to the proper URL. Something ends up looking like this:

HTTP/1.1 301 Moved Permanently
Location: http://www.example.org/
Content-Type: text/html
Content-Length: 174   
<html>
<head>
<title>Moved</title>
</head>
<body>
<h1>Moved</h1>
<p>This page has moved to <a href="http://www.example.org/">http://www.example.org/</a>.</p>
</body>
</html>

Keep in mind that simply creating a index.html text file and pasting this into the file won't work in many cases. Header values are typically set using some method in the programming environment you are using... and this can vary greatly depending on the programming language.

Depending on your web-server flavor/configuration, there may be other alternatives, like setting up a proxy, but this is rarely as good of an idea as it sounds. I wouldn't suggest doing this on a production site. With Apache, you can use mod_proxy, but this doesn't always work well, as you must rewrite links & references on the fly to ensure that the correct domain name & path are used. There are additional tools to do this automatically, but they're quite complex, and probably not what you're looking for.

More information would be helpful. Most importantly, What kind of web server? what kind of access/control do you have on it? Is it hosing other websites? Can the application handle alternate paths or is everything hard-coded? etc...

-1
ответ дан 5 December 2019 в 20:55

Теги

Похожие вопросы